aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 91bff15..685085d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,6 +11,12 @@ RUN apt-get install -y nodejs yarn
COPY . /var/www
WORKDIR /var/www
+RUN npm install
+RUN if [ "$SCHOOL_LEVEL" = "mavo" ]; \
+ then npm run build-mavo; \
+ else npm run build; \
+ fi
+
ENV PORT=80
ENV SCHOOL_LEVEL=$SCHOOL_LEVEL
EXPOSE 80