build: optimize the production Dockerfile

This commit is contained in:
Matouš Volf 2024-09-13 12:34:52 +02:00
parent b98f3d00d6
commit 0f3a691d29

View File

@ -7,9 +7,9 @@ RUN rustup target add wasm32-unknown-unknown && \
COPY . /srv/app
WORKDIR /srv/app
RUN npm install
RUN npm run build
RUN dx build --release
RUN npm install && \
npm run build && \
dx build --release
FROM debian:bookworm-slim AS runner