"Fossies" - the Fresh Open Source Software Archive

Member "gogs-0.12.3/docker/Dockerfile.aarch64" (7 Oct 2020, 993 Bytes) of package /linux/misc/gogs-0.12.3.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 FROM arm64v8/golang:1.14-alpine3.11 AS binarybuilder
    2 RUN apk --no-cache --no-progress add --virtual \
    3   build-deps \
    4   build-base \
    5   git \
    6   linux-pam-dev
    7 
    8 WORKDIR /gogs.io/gogs
    9 COPY . .
   10 RUN make build-no-gen TAGS="cert pam"
   11 
   12 FROM arm64v8/alpine:3.11
   13 ADD https://github.com/tianon/gosu/releases/download/1.11/gosu-arm64 /usr/sbin/gosu
   14 RUN chmod +x /usr/sbin/gosu \
   15   && echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \
   16   && apk --no-cache --no-progress add \
   17   bash \
   18   ca-certificates \
   19   curl \
   20   git \
   21   linux-pam \
   22   openssh \
   23   s6 \
   24   shadow \
   25   socat \
   26   tzdata \
   27   rsync
   28 
   29 ENV GOGS_CUSTOM /data/gogs
   30 
   31 # Configure LibC Name Service
   32 COPY docker/nsswitch.conf /etc/nsswitch.conf
   33 
   34 WORKDIR /app/gogs
   35 COPY docker ./docker
   36 COPY --from=binarybuilder /gogs.io/gogs/gogs .
   37 
   38 RUN ./docker/finalize.sh
   39 
   40 # Configure Docker Container
   41 VOLUME ["/data", "/backup"]
   42 EXPOSE 22 3000
   43 ENTRYPOINT ["/app/gogs/docker/start.sh"]
   44 CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]