mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
chore: The docker environment is refactored
This commit is contained in:
parent
81570b42c0
commit
7ab0fa6f23
@ -1,7 +1,7 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
# this stage is used to build the application
|
# this stage is used to build the application
|
||||||
FROM golang:1.21-bullseye as builder
|
FROM golang:1.21-bullseye AS builder
|
||||||
|
|
||||||
COPY ./go.* /src/
|
COPY ./go.* /src/
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ RUN set -x \
|
|||||||
&& ls -l ./html
|
&& ls -l ./html
|
||||||
|
|
||||||
# use empty filesystem
|
# use empty filesystem
|
||||||
FROM scratch as runtime
|
FROM scratch AS runtime
|
||||||
|
|
||||||
ARG APP_VERSION="undefined@docker"
|
ARG APP_VERSION="undefined@docker"
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ LABEL \
|
|||||||
org.opencontainers.image.licenses="MIT"
|
org.opencontainers.image.licenses="MIT"
|
||||||
|
|
||||||
# Import from builder
|
# Import from builder
|
||||||
COPY --from=builder /tmp/rootfs /
|
COPY --from=compiler /tmp/rootfs /
|
||||||
|
|
||||||
# Use an unprivileged user
|
# Use an unprivileged user
|
||||||
USER 10001:10001
|
USER 10001:10001
|
||||||
|
Loading…
Reference in New Issue
Block a user