From f29e77bbe9c7c021da814039fca874a30abce890 Mon Sep 17 00:00:00 2001 From: marvin-j97 Date: Sun, 21 Apr 2024 17:19:09 +0200 Subject: [PATCH] update dockerfiles --- Dockerfile.alpine | 2 +- Dockerfile.debian | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile.alpine b/Dockerfile.alpine index d0ecb20..1bf8cd2 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -5,7 +5,7 @@ FROM node:20-alpine AS node-builder WORKDIR /app COPY . . -RUN cd app && npm i && npm run build +RUN cd app && npm ci && npm run build # # Rust Build stage diff --git a/Dockerfile.debian b/Dockerfile.debian index e91a6e0..7c32d68 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -1,16 +1,16 @@ # # Node build stage # -FROM node:20-bookworm AS node-builder +FROM node:20-alpine AS node-builder WORKDIR /app COPY . . -RUN cd app && npm i && npm run build +RUN cd app && npm ci && npm run build # # Rust Build stage # -FROM rust:slim-bookworm as rust-builder +FROM rust:slim as rust-builder WORKDIR /app COPY . . @@ -21,7 +21,7 @@ RUN cargo build --release # # Runner stage # -FROM debian:bookworm-slim as runner +FROM debian:stable-slim as runner WORKDIR /app COPY --from=rust-builder /app/target/release/server /app/smoltable