Skip to content

Commit

Permalink
chore: The docker environment is refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Sep 3, 2023
1 parent 81570b4 commit 7ab0fa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1

# 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/

Expand Down Expand Up @@ -52,7 +52,7 @@ RUN set -x \
&& ls -l ./html

# use empty filesystem
FROM scratch as runtime
FROM scratch AS runtime

ARG APP_VERSION="undefined@docker"

Expand All @@ -67,7 +67,7 @@ LABEL \
org.opencontainers.image.licenses="MIT"

# Import from builder
COPY --from=builder /tmp/rootfs /
COPY --from=compiler /tmp/rootfs /

# Use an unprivileged user
USER 10001:10001
Expand Down

0 comments on commit 7ab0fa6

Please sign in to comment.