dashboard/Dockerfile
2020-05-24 22:34:58 +02:00

18 lines
365 B
Docker

# 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 . .
# Download dependencies, build application
RUN yarn
RUN [ "yarn", "build" ]
# Expose the two relevant ports
EXPOSE 3000 8080
# Serve the app
CMD [ "yarn", "serve:production" ]