debian-mirror-gitlab/vendor/Dockerfile/Node-alpine.Dockerfile
2018-11-20 20:47:30 +05:30

17 lines
341 B
Docker

FROM node:10.6-alpine
# Uncomment if use of `process.dlopen` is necessary
# apk add --no-cache libc6-compat
ENV PORT 8080
EXPOSE 8080 # replace this with your application's default port, if necessary
ARG NODE_ENV=production
ENV NODE_ENV $NODE_ENV
WORKDIR /usr/src/app
COPY package.json .
RUN npm install
COPY . .
CMD [ "npm", "start" ]