aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2021-12-15 11:52:58 +0800
committerGitHub <noreply@github.com>2021-12-15 11:52:58 +0800
commit7867163bfd6ab0c07a17e5be769fc2a6900a0fb0 (patch)
tree9bc99a99997ea836ab64a1eb67970aea8be53eb8
parent82652f0f0867e14c7fec938e621a2974564961df (diff)
docker: delete `Dockerfile.aarch64` (#6658)
-rw-r--r--docker/Dockerfile.aarch6445
-rw-r--r--docker/README.md2
2 files changed, 1 insertions, 46 deletions
diff --git a/docker/Dockerfile.aarch64 b/docker/Dockerfile.aarch64
deleted file mode 100644
index 444bbb41..00000000
--- a/docker/Dockerfile.aarch64
+++ /dev/null
@@ -1,45 +0,0 @@
-FROM arm64v8/golang:1.14-alpine3.11 AS binarybuilder
-RUN apk --no-cache --no-progress add --virtual \
- build-deps \
- build-base \
- git \
- linux-pam-dev
-
-WORKDIR /gogs.io/gogs
-COPY . .
-RUN make build TAGS="cert pam"
-
-FROM arm64v8/alpine:3.11
-RUN wget https://github.com/tianon/gosu/releases/download/1.11/gosu-arm64 -O /usr/sbin/gosu \
- && chmod +x /usr/sbin/gosu \
- && echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \
- && apk --no-cache --no-progress add \
- bash \
- ca-certificates \
- curl \
- git \
- linux-pam \
- openssh \
- s6 \
- shadow \
- socat \
- tzdata \
- rsync
-
-ENV GOGS_CUSTOM /data/gogs
-
-# Configure LibC Name Service
-COPY docker/nsswitch.conf /etc/nsswitch.conf
-
-WORKDIR /app/gogs
-COPY docker ./docker
-COPY --from=binarybuilder /gogs.io/gogs/gogs .
-
-RUN ./docker/finalize.sh
-
-# Configure Docker Container
-VOLUME ["/data", "/backup"]
-EXPOSE 22 3000
-HEALTHCHECK CMD (nc -z -w 3 localhost:22 && curl -o /dev/null -sS http://localhost:3000/healthcheck) || exit 1
-ENTRYPOINT ["/app/gogs/docker/start.sh"]
-CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]
diff --git a/docker/README.md b/docker/README.md
index 4f0fad74..a57bb981 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -1,6 +1,6 @@
# Docker for Gogs
-![Docker pulls](https://img.shields.io/docker/pulls/gogs/gogs?logo=docker&style=for-the-badge) ![Docker image size](https://img.shields.io/microbadger/image-size/gogs/gogs?logo=docker&style=for-the-badge)
+![Docker pulls](https://img.shields.io/docker/pulls/gogs/gogs?logo=docker&style=for-the-badge)
Visit [Docker Hub](https://hub.docker.com/u/gogs) see all available images and tags.