You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
338 B

6 years ago
# Pull node base image
FROM node:latest
ARG build_path=/var/www
ENV BUILD_PATH=$build_path
# Expose port 80
6 years ago
EXPOSE 8000
6 years ago
VOLUME [ "/var/www/exported" ]
# Copy custom configuration file from the current directory
WORKDIR ${BUILD_PATH}
COPY . ${BUILD_PATH}
2 years ago
RUN yarn install
RUN yarn build
6 years ago
# Start up node server
2 years ago
CMD ["yarn", "start"]