Updated Dockerfile

This commit is contained in:
Bastian Meissner 2020-05-24 22:44:21 +02:00
parent c74708561b
commit f46ddcf237

View file

@ -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" ]