Dockerfile.aarch64 625 B

12345678910111213141516171819202122
  1. FROM aarch64/alpine:3.5
  2. MAINTAINER atzoum@gmail.com
  3. # Install system utils & Gogs runtime dependencies
  4. ADD https://github.com/tianon/gosu/releases/download/1.9/gosu-arm64 /usr/sbin/gosu
  5. RUN chmod +x /usr/sbin/gosu \
  6. && apk --no-cache --no-progress add ca-certificates bash git linux-pam s6 curl openssh socat tzdata
  7. ENV GOGS_CUSTOM /data/gogs
  8. COPY . /app/gogs/
  9. WORKDIR /app/gogs/
  10. RUN ./docker/build.sh
  11. # Configure LibC Name Service
  12. COPY docker/nsswitch.conf /etc/nsswitch.conf
  13. # Configure Docker Container
  14. VOLUME ["/data"]
  15. EXPOSE 22 3000
  16. ENTRYPOINT ["docker/start.sh"]
  17. CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]