Refactor Dockerfile to use slim images and remove openapi.json
Some checks failed
CI / ci (push) Failing after 1m36s
Some checks failed
CI / ci (push) Failing after 1m36s
This commit is contained in:
@@ -5,17 +5,17 @@ RUN bun install --frozen-lockfile
|
|||||||
COPY spa/ .
|
COPY spa/ .
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
||||||
FROM rust:1-alpine AS builder
|
FROM rust:1-slim-bookworm AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static pkgconfig
|
RUN apt-get update && apt-get install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY Cargo.toml Cargo.lock ./
|
||||||
COPY crates/ ./crates/
|
COPY crates/ ./crates/
|
||||||
|
|
||||||
RUN cargo build --release --bin k-mood
|
RUN cargo build --release --bin k-mood
|
||||||
|
|
||||||
FROM alpine:3
|
FROM debian:bookworm-slim
|
||||||
RUN apk add --no-cache ca-certificates wget
|
RUN apt-get update && apt-get install -y ca-certificates wget libssl3 && rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=builder /app/target/release/k-mood /usr/local/bin/k-mood
|
COPY --from=builder /app/target/release/k-mood /usr/local/bin/k-mood
|
||||||
COPY --from=frontend /app/spa/dist /spa/dist
|
COPY --from=frontend /app/spa/dist /spa/dist
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user