From 2335725bab9280b1ff30a44132a26b67d43d8005 Mon Sep 17 00:00:00 2001
From: esikkala <esko.ikkala@aalto.fi>
Date: Thu, 21 Mar 2019 13:52:43 +0200
Subject: [PATCH] Add comments to dockerfile

---
 Dockerfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 9e0f73b6..4444fbee 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,11 @@
 FROM node:10.15.3-alpine
 
+# Create app directory
 RUN mkdir /opt/app && chown node:node /opt/app
 
 RUN apk add --update git && \
 rm -rf /tmp/* /var/cache/apk/*
 
-# Create app directory
 WORKDIR /opt/app
 
 USER node
@@ -22,8 +22,10 @@ COPY .babelrc ./
 # Bundle app source
 COPY src ./src
 
+# Run the scripts defined in package.json
 RUN npm install && npm run build
 
 EXPOSE 3001
 
+# Express server handles the backend functionality and also serves the React app
 CMD ["node", "dist/server"]
-- 
GitLab