Skip to content

Commit

Permalink
build: reduce docker images size (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
luojiyin1987 authored Aug 22, 2024
1 parent cb65582 commit 3fd8e0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile.example
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:18-alpine

ENV NODE_ENV=production

FROM node:18-slim as builder
WORKDIR /app
RUN npm install -g dashpress

FROM node:18-slim
ENV NODE_ENV=production
COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules
COPY --from=builder /usr/local/bin /usr/local/bin
WORKDIR /app

EXPOSE 3000

CMD ["dashpress"]

# Steps to use
Expand Down

0 comments on commit 3fd8e0a

Please sign in to comment.