fix: use bookworm
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2023-11-05 00:07:53 +05:30
parent 0ba21e184d
commit ba379f1999
Signed by: realaravinth
GPG key ID: F8F50389936984FF
2 changed files with 3 additions and 3 deletions

View file

@ -8,14 +8,14 @@ RUN yarn install
COPY . . COPY . .
RUN make frontend RUN make frontend
FROM rust:1-slim-bookworm as rust FROM rust:latest as rust
WORKDIR /src WORKDIR /src
RUN apt-get update && apt-get install -y git libssl-dev RUN apt-get update && apt-get install -y git libssl-dev
COPY . /src COPY . /src
COPY --from=frontend /src/static/cache/bundle /src/static/cache/bundle COPY --from=frontend /src/static/cache/bundle /src/static/cache/bundle
RUN cargo build --release RUN cargo build --release
FROM debian:bookworm-slim FROM debian:bookworm
RUN useradd -ms /bin/bash -u 1001 mcaptcha-survey RUN useradd -ms /bin/bash -u 1001 mcaptcha-survey
WORKDIR /home/mcaptcha-survey WORKDIR /home/mcaptcha-survey
COPY --from=rust /src/target/release/survey /usr/local/bin/ COPY --from=rust /src/target/release/survey /usr/local/bin/

View file

@ -49,7 +49,7 @@ doc: ## Prepare documentation
cargo doc --no-deps --workspace --all-features cargo doc --no-deps --workspace --all-features
docker: ## Build docker images docker: ## Build docker images
docker build -t mcaptcha/survey:master -t mcaptcha/survey:latest . docker buildx build -t mcaptcha/survey:master -t mcaptcha/survey:latest . --load
docker-publish: docker ## Build and publish docker images docker-publish: docker ## Build and publish docker images
docker push mcaptcha/survey:master docker push mcaptcha/survey:master