2019-08-26 00:24:05 +02:00
|
|
|
FROM node:10-slim
|
2015-11-15 20:59:29 +01:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2016-06-18 19:04:44 +02:00
|
|
|
RUN npm install -g nodemon
|
2019-08-25 22:12:01 +02:00
|
|
|
|
|
|
|
COPY package*.json ./
|
|
|
|
|
|
|
|
RUN npm ci \
|
2018-01-04 12:22:17 +01:00
|
|
|
&& npm cache clean --force \
|
|
|
|
&& mv /app/node_modules /node_modules
|
2019-08-25 22:12:01 +02:00
|
|
|
|
|
|
|
COPY . .
|
2015-11-15 20:59:29 +01:00
|
|
|
|
|
|
|
ENV PORT 80
|
2019-08-25 22:12:01 +02:00
|
|
|
|
2015-11-15 20:59:29 +01:00
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
CMD ["node", "server.js"]
|