mirror of
https://github.com/bitnami/containers.git
synced 2026-02-19 14:08:07 +08:00
example: a clean up
This commit is contained in:
@@ -1,21 +1,12 @@
|
||||
FROM bitnami/node:6 as builder
|
||||
|
||||
ENV NODE_ENV="production"
|
||||
|
||||
COPY . /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install
|
||||
|
||||
FROM bitnami/node:6-prod
|
||||
|
||||
ENV NODE_ENV="production"
|
||||
|
||||
COPY --from=builder /app /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "start"]
|
||||
|
||||
Reference in New Issue
Block a user