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.

27 lines
433 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/data" ]
6 years ago
# Copy custom configuration file from the current directory
WORKDIR ${BUILD_PATH}
2 years ago
COPY tsconfig.json tsconfig.json
COPY package.json package.json
COPY yarn.lock yarn.lock
COPY src src
COPY build build
6 years ago
2 years ago
RUN yarn install
RUN yarn build
6 years ago
# Start up node server
2 years ago
CMD ["yarn", "start"]