Compare commits
No commits in common. "75dc0a6320e919fa200bc30777202b30a8aa7bb9" and "01e72652b8655c88d0366eea3a1f859180b0e686" have entirely different histories.
75dc0a6320
...
01e72652b8
@ -36,7 +36,7 @@ ENTRYPOINT ["/small-rust"]
|
||||
#RUN update-ca-certificates
|
||||
#
|
||||
## Create appuser
|
||||
#ENV USER=small-rust
|
||||
#ENV USER=myip
|
||||
#ENV UID=10001
|
||||
#
|
||||
#RUN adduser \
|
||||
@ -49,7 +49,7 @@ ENTRYPOINT ["/small-rust"]
|
||||
# "${USER}"
|
||||
#
|
||||
#
|
||||
#WORKDIR /app
|
||||
#WORKDIR /myip
|
||||
#
|
||||
#COPY ./ .
|
||||
#
|
||||
|
@ -45,32 +45,3 @@ COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/small-rust ./
|
||||
USER small-rust:small-rust
|
||||
|
||||
CMD ["/app/small-rust"]
|
||||
|
||||
####################################################################################################
|
||||
## Alternatively use this builder (image size actually bigger)
|
||||
####################################################################################################
|
||||
#FROM rust:1-alpine3.19 AS builder
|
||||
#
|
||||
#RUN rustup update nightly; rustup default nightly;
|
||||
#
|
||||
## Create appuser
|
||||
#ENV USER=small-rust
|
||||
#ENV UID=10001
|
||||
#
|
||||
#RUN adduser \
|
||||
# --disabled-password \
|
||||
# --gecos "" \
|
||||
# --home "/nonexistent" \
|
||||
# --shell "/sbin/nologin" \
|
||||
# --no-create-home \
|
||||
# --uid "${UID}" \
|
||||
# "${USER}"
|
||||
#
|
||||
#RUN apk add --no-cache musl-dev
|
||||
#
|
||||
#WORKDIR /app
|
||||
#
|
||||
#COPY ./ /app
|
||||
#
|
||||
#RUN cargo build --release
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user