debian-mirror-gitlab/vendor/Dockerfile/Node-alpine.Dockerfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
341 B
Docker
Raw Normal View History

2018-11-20 20:47:30 +05:30
FROM node:10.6-alpine
2017-09-10 17:25:29 +05:30
2018-11-20 20:47:30 +05:30
# 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
2017-09-10 17:25:29 +05:30
2018-11-20 20:47:30 +05:30
ARG NODE_ENV=production
2017-09-10 17:25:29 +05:30
ENV NODE_ENV $NODE_ENV
2018-11-18 11:00:15 +05:30
2018-11-20 20:47:30 +05:30
WORKDIR /usr/src/app
COPY package.json .
2018-11-18 11:00:15 +05:30
RUN npm install
2018-11-20 20:47:30 +05:30
COPY . .
2017-09-10 17:25:29 +05:30
2018-11-18 11:00:15 +05:30
CMD [ "npm", "start" ]