From 6d40c7797a77d16a84d3c15eebe50b2a5477e4ef Mon Sep 17 00:00:00 2001 From: Paramtamtam <7326800+tarampampam@users.noreply.github.com> Date: Thu, 4 Jul 2024 12:17:34 +0400 Subject: [PATCH] dockerfile update --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac64a84..a8649c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ # -✂- this stage is used to develop and build the application locally ------------------------------------------------- FROM docker.io/library/golang:1.22-bookworm AS develop -# use the /var/tmp as the GOPATH to reuse the modules cache +# use the /var/tmp/go as the GOPATH to reuse the modules cache ENV GOPATH="/var/tmp/go" RUN set -x \ @@ -45,7 +45,7 @@ FROM docker.io/library/alpine:3.20 AS rootfs WORKDIR /tmp/rootfs # prepare rootfs for runtime -RUN --mount=type=bind,source=.,target=/src set -x \ +RUN set -x \ && mkdir -p ./etc ./bin \ && echo 'appuser:x:10001:10001::/nonexistent:/sbin/nologin' > ./etc/passwd \ && echo 'appuser:x:10001:' > ./etc/group @@ -69,7 +69,7 @@ ARG APP_VERSION="undefined@docker" LABEL \ # docs: https://github.com/opencontainers/image-spec/blob/master/annotations.md org.opencontainers.image.title="error-pages" \ - org.opencontainers.image.description="Static server error pages in the docker image" \ + org.opencontainers.image.description="Pretty server's error pages" \ org.opencontainers.image.url="https://github.com/tarampampam/error-pages" \ org.opencontainers.image.source="https://github.com/tarampampam/error-pages" \ org.opencontainers.image.vendor="tarampampam" \