2018-09-08 01:26:32 -04:00
|
|
|
FROM node:10.6-alpine
|
2017-06-26 11:36:29 -04:00
|
|
|
|
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
|
2017-06-26 11:36:29 -04:00
|
|
|
|
2018-09-08 01:26:32 -04:00
|
|
|
ARG NODE_ENV=production
|
2017-06-26 11:36:29 -04:00
|
|
|
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 . .
|
2017-06-26 11:36:29 -04:00
|
|
|
|
2018-08-08 03:28:55 -04:00
|
|
|
CMD [ "npm", "start" ]
|