gitlab-org--gitlab-foss/vendor/Dockerfile/Node-alpine.Dockerfile

18 lines
341 B
Docker
Raw Normal View History

2018-09-08 01:26:32 -04:00
FROM node:10.6-alpine
2018-09-08 01:26:32 -04:00
# 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
2018-09-08 01:26:32 -04:00
ARG NODE_ENV=production
ENV NODE_ENV $NODE_ENV
2018-08-08 03:28:55 -04:00
2018-09-08 01:26:32 -04:00
WORKDIR /usr/src/app
COPY package.json .
2018-08-08 03:28:55 -04:00
RUN npm install
2018-09-08 01:26:32 -04:00
COPY . .
2018-08-08 03:28:55 -04:00
CMD [ "npm", "start" ]