diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-08-29 15:38:59 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-08-29 15:38:59 +0200 |
commit | 862f7c21a231f0669fc5d430aec60cea01b499db (patch) | |
tree | dba443d824741a6ba56be1f732f49adca71302cb | |
parent | efd49af3106436731e32b0bb9ca0e347844de267 (diff) |
Fix Dockerfile ensure proper builds are used
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |