forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hardcode path to docker images (go-gitea#23955)
Fix go-gitea#23954 This allows for building on platforms that don't have docker hub as the default container registry.
- Loading branch information
1 parent
001d3fb
commit dc86bff
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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="[email protected]" | ||
|
||
EXPOSE 22 3000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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="[email protected]" | ||
|
||
EXPOSE 2222 3000 | ||
|