From f46ddcf237326ded016177dd21d46c78d6ed92d1 Mon Sep 17 00:00:00 2001 From: Bastian Meissner Date: Sun, 24 May 2020 22:44:21 +0200 Subject: [PATCH] Updated Dockerfile --- Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index c426070..3dd0609 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,18 @@ -# Get current image of node.js FROM node:current-alpine -# Set /app as directory where the app should be at WORKDIR /app -# Copy all of the relevant files over to the container -COPY . . +COPY yarn.lock . +COPY package.json . + +RUN [ "yarn", "install" ] + +COPY data . +COPY src . +COPY public . -# Download dependencies, build application -RUN yarn RUN [ "yarn", "build" ] -# Expose the two relevant ports EXPOSE 3000 8080 -# Serve the app CMD [ "yarn", "serve:production" ]