aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-08-29 15:38:59 +0200
committerNoah Loomans <noahloomans@gmail.com>2018-08-29 15:38:59 +0200
commit862f7c21a231f0669fc5d430aec60cea01b499db (patch)
treedba443d824741a6ba56be1f732f49adca71302cb
parentefd49af3106436731e32b0bb9ca0e347844de267 (diff)
Fix Dockerfile ensure proper builds are used
-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