aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-08-04 14:23:39 +0200
committerNoah Loomans <noahloomans@gmail.com>2018-08-04 14:23:39 +0200
commitefd49af3106436731e32b0bb9ca0e347844de267 (patch)
tree0657cda125bdecd1af67844d206fc161076ad47b
parenta9c832b003daa70ee78cacecc518cebdf4071ca1 (diff)
Allow setting env in Dockerfile
-rw-r--r--Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 6c51af4..91bff15 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,5 @@
FROM ubuntu
+ARG SCHOOL_LEVEL=havo-vwo
RUN apt-get update
RUN apt-get install -y curl build-essential apt-transport-https
@@ -11,6 +12,7 @@ COPY . /var/www
WORKDIR /var/www
ENV PORT=80
+ENV SCHOOL_LEVEL=$SCHOOL_LEVEL
EXPOSE 80
CMD yarn start