Skip to content

Commit

Permalink
update dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Apr 21, 2024
1 parent c4236c3 commit f29e77b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.debian
Original file line number Diff line number Diff line change
@@ -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 . .
Expand All @@ -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
Expand Down

0 comments on commit f29e77b

Please sign in to comment.