Dockerfile 841 B

1234567891011121314151617181920212223242526272829303132
  1. FROM ubuntu:16.04
  2. ENV DEBIAN_FRONTEND noninteractive
  3. RUN apt-get update && \
  4. apt-get install -y --no-install-recommends \
  5. gcc g++ libc6-dev make golang \
  6. git git-annex openssh-server \
  7. python-pip python-setuptools \
  8. socat tzdata patch \
  9. libpam0g-dev node-less \
  10. && rm -rf /var/lib/apt/lists/*
  11. RUN pip install supervisor pyyaml
  12. ENV GOGS_CUSTOM /data/gogs
  13. COPY . /app/gogs/build
  14. WORKDIR /app/gogs/build
  15. RUN ./docker/build-go.sh
  16. RUN ./docker/build.sh
  17. RUN ./docker/finalize.sh
  18. # Configure LibC Name Service
  19. COPY docker/nsswitch.conf /etc/nsswitch.conf
  20. # Configure Docker Container
  21. VOLUME ["/data"]
  22. EXPOSE 22 3000
  23. ENTRYPOINT ["/app/gogs/docker/start.sh"]