dashboard/Dockerfile
2020-05-24 22:03:51 +02:00

18 lines
363 B
Docker

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