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.
 
 
 
 
 

28 lines
559 B

FROM node:8-alpine AS build
# tools for building zeromq
RUN apk add --no-cache curl gnupg make g++ bash python
# Note: context starts in directory above (see docker-compose file)
COPY server /var/www/server
WORKDIR /var/www/server
RUN npm install
RUN npm run build
FROM node:8-alpine
# Note: context starts in directory above (see docker-compose file)
COPY server/package.json /var/www/server/
WORKDIR /var/www/server
COPY --from=build /var/www/server/dist /var/www/server/dist
VOLUME ["/var/www/data"]
ENV INSIDE_DOCKER true
CMD ["npm", "start"]