summaryrefslogtreecommitdiff
path: root/vendor/Dockerfile/Node-alpine.Dockerfile
blob: 24f92dd92cd89b818112112528b098243d1153a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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" ]