build: optimize the production Dockerfile

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

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