diff options
author | Giteabot <teabot@gitea.io> | 2023-04-07 08:54:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 14:54:28 +0200 |
commit | 833a4b177596debc138e5723219fd063d067bd5b (patch) | |
tree | 8b7d6e009220eae57851e020e03f13b071db9b95 | |
parent | 1b8ecd179bdb58427b99c2c2eb9ad5a45abf7055 (diff) | |
download | gitea-833a4b177596debc138e5723219fd063d067bd5b.tar.gz gitea-833a4b177596debc138e5723219fd063d067bd5b.zip |
Hardcode path to docker images (#23955) (#23968)
Backport #23955 by @techknowlogick
Fix #23954
This allows for building on platforms that don't have docker hub as the
default container registry.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
-rw-r--r-- | Dockerfile | 4 | ||||
-rw-r--r-- | Dockerfile.rootless | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile index fad8ae1790..3623085e47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ #Build stage -FROM golang:1.20-alpine3.17 AS build-env +FROM docker.io/library/golang:1.20-alpine3.17 AS build-env ARG GOPROXY ENV GOPROXY ${GOPROXY:-direct} @@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \ # Begin env-to-ini build RUN go build contrib/environment-to-ini/environment-to-ini.go -FROM alpine:3.17 +FROM docker.io/library/alpine:3.17 LABEL maintainer="maintainers@gitea.io" EXPOSE 22 3000 diff --git a/Dockerfile.rootless b/Dockerfile.rootless index 98051f7ddb..67bd9c4880 100644 --- a/Dockerfile.rootless +++ b/Dockerfile.rootless @@ -1,5 +1,5 @@ #Build stage -FROM golang:1.20-alpine3.17 AS build-env +FROM docker.io/library/golang:1.20-alpine3.17 AS build-env ARG GOPROXY ENV GOPROXY ${GOPROXY:-direct} @@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \ # Begin env-to-ini build RUN go build contrib/environment-to-ini/environment-to-ini.go -FROM alpine:3.17 +FROM docker.io/library/alpine:3.17 LABEL maintainer="maintainers@gitea.io" EXPOSE 2222 3000 |