Add logging & config; update base images

This commit is contained in:
Elton Stoneman
2019-04-06 21:08:10 +01:00
parent cdf9a12c62
commit 68b8cd014c
15 changed files with 153 additions and 22 deletions

View File

@@ -0,0 +1,15 @@
FROM node AS builder
WORKDIR /src
COPY package.json .
RUN npm install
# app image
FROM node
EXPOSE 8080
CMD npm start
WORKDIR /app
COPY --from=builder /src/node_modules/ /app/node_modules/
COPY . .