mirror of
https://github.com/docker-training/node-bulletin-board.git
synced 2025-05-18 03:49:31 +08:00
15 lines
201 B
Docker
15 lines
201 B
Docker
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 . . |