dashboard/Dockerfile

18 lines
360 B
Text
Raw Normal View History

# Get current image of node.js
2020-05-20 18:46:58 +02:00
FROM node:current-slim
# Set /app as directory where the app should be at
2020-05-20 18:46:58 +02:00
WORKDIR /app
# Copy all of the relevant files over to the container
2020-05-20 18:46:58 +02:00
COPY . .
# Download dependencies, build container
2020-05-20 18:46:58 +02:00
RUN yarn
RUN [ "yarn", "build" ]
# Expose the two relevant ports
EXPOSE 3000 8080
# Serve the app
CMD [ "yarn", "serve:production" ]