mirror of
https://github.com/docker-training/node-bulletin-board.git
synced 2025-12-15 15:26:43 +08:00
Add logging & config; update base images
This commit is contained in:
15
bulletin-board-app/Dockerfile.v3.1
Normal file
15
bulletin-board-app/Dockerfile.v3.1
Normal 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 . .
|
||||
Reference in New Issue
Block a user