gogs/Dockerfile.rpi

25 lines
679 B
Docker
Raw Normal View History

FROM armhf/alpine:3.5
2015-11-22 18:14:08 +03:00
# Install system utils & Gogs runtime dependencies
ADD https://github.com/tianon/gosu/releases/download/1.9/gosu-armhf /usr/sbin/gosu
RUN chmod +x /usr/sbin/gosu \
2016-07-15 05:55:05 +03:00
&& apk --no-cache --no-progress add ca-certificates bash git linux-pam s6 curl openssh socat tzdata
2015-11-22 18:14:08 +03:00
ENV GOGS_CUSTOM /data/gogs
COPY . /app/gogs/build
WORKDIR /app/gogs/build
RUN ./docker/build-go.sh \
&& ./docker/build.sh \
&& ./docker/finalize.sh
2015-11-22 18:14:08 +03:00
# Configure LibC Name Service
COPY docker/nsswitch.conf /etc/nsswitch.conf
2015-11-22 18:14:08 +03:00
# Configure Docker Container
VOLUME ["/data"]
EXPOSE 22 3000
ENTRYPOINT ["/app/gogs/docker/start.sh"]
CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]