aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-01-30 16:01:03 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-01-30 16:01:03 +0100
commitbd29110690e6b0e58ca2bf0a54b689c564a95a9c (patch)
tree793302565e81a4ffa691e945a0cac7af8c6f078c /Dockerfile
parentf8f06f9fad453bd0737d6ecaa7685e787a42d4d9 (diff)
Compile and build project in Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 6c51af4..05c67e1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,6 +10,9 @@ RUN apt-get install -y nodejs yarn
COPY . /var/www
WORKDIR /var/www
+RUN yarn
+RUN yarn build
+
ENV PORT=80
EXPOSE 80