Compare commits
3
Commits
0c7af4ce51
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f05368443b
|
||
|
|
c578aebafe
|
||
|
|
5d97e9bc1e
|
Generated
+282
-356
File diff suppressed because it is too large
Load Diff
+4
-4
@@ -8,8 +8,8 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
# Create a stage for building the application.
|
# Create a stage for building the application.
|
||||||
|
|
||||||
ARG RUST_VERSION=1.89.0
|
ARG RUST_VERSION=1.99.0
|
||||||
FROM rust:${RUST_VERSION}-slim-bullseye AS build
|
FROM rust:${RUST_VERSION}-slim-trixie AS build
|
||||||
ARG TARGET=release
|
ARG TARGET=release
|
||||||
ARG APP_NAME
|
ARG APP_NAME
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -47,9 +47,9 @@ EOF
|
|||||||
# most recent version of that tag when you build your Dockerfile. If
|
# most recent version of that tag when you build your Dockerfile. If
|
||||||
# reproducability is important, consider using a digest
|
# reproducability is important, consider using a digest
|
||||||
# (e.g., debian@sha256:ac707220fbd7b67fc19b112cee8170b41a9e97f703f588b2cdbbcdcecdd8af57).
|
# (e.g., debian@sha256:ac707220fbd7b67fc19b112cee8170b41a9e97f703f588b2cdbbcdcecdd8af57).
|
||||||
FROM debian:bullseye-slim AS final
|
FROM debian:trixie-slim AS final
|
||||||
|
|
||||||
RUN apt update && apt install -y libssl-dev openssl ca-certificates curl libsqlite3-dev
|
RUN apt update && apt install -y libssl-dev openssl ca-certificates curl libsqlite3-dev adduser
|
||||||
|
|
||||||
# Create a non-privileged user that the app will run under.
|
# Create a non-privileged user that the app will run under.
|
||||||
# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/ #user
|
# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/ #user
|
||||||
|
|||||||
Reference in New Issue
Block a user