pull/227/merge
Hristo Georgiev 2024-10-18 13:01:48 +03:00 committed by GitHub
commit 2c73c0cdd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 1 deletions

View File

@ -9,9 +9,12 @@ RUN cd /src/goproxy &&\
FROM golang:alpine
ARG ARCH=amd64
# Add tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-amd64 /usr/bin/tini
ENV TINI_ARCH=$ARCH
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TINI_ARCH} /usr/bin/tini
RUN chmod +x /usr/bin/tini
RUN apk add --no-cache -U git mercurial subversion

View File

@ -71,6 +71,20 @@ git config --global url."https://${GITHUB_PERSONAL_ACCESS_TOKEN}@github.com/".in
This can be done for other git providers as well, following the same pattern
## Build docker image
If you want to build the docker image locally (you don't have to):
```shell
docker build -t goproxy/goproxy:latest .
```
or if you are running on arm64
```shell
docker build --build-arg ARCH=arm64 -t goproxy/goproxy:latest .
```
## Use docker image
```shell