build: optimize the production Dockerfile
This commit is contained in:
parent
bc78c404bb
commit
c995b9286f
@ -7,9 +7,9 @@ RUN rustup target add wasm32-unknown-unknown && \
|
|||||||
COPY . /srv/app
|
COPY . /srv/app
|
||||||
WORKDIR /srv/app
|
WORKDIR /srv/app
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install && \
|
||||||
RUN npm run build
|
npm run build && \
|
||||||
RUN dx build --release
|
dx build --release
|
||||||
|
|
||||||
FROM debian:bookworm-slim AS runner
|
FROM debian:bookworm-slim AS runner
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user