bcd4adb3a0
* docker: update build script to use glide + make - docker/build.sh will now use glide to fetch dependencies - glide is built from source to keep compatibility with arm (no pre-prebuilt binary for arm) - docker/build.sh will also now use the provided Makefile It will generate an error when trying to get git build has as we do not ship the 88mo .git directory during the build (should not cause any problem as the variable it sets was not set previously) * docker: fix docker arm build - drop gosu version back to 1.7 as gosu binary for armhf is broken - see tianon/gosu#19 * docker: update gosu to 1.9 Signed-off-by: Jean-Philippe Roemer <jp@roemer.im>
22 lines
606 B
Docker
22 lines
606 B
Docker
FROM alpine:3.3
|
||
MAINTAINER jp@roemer.im
|
||
|
||
# Install system utils & Gogs runtime dependencies
|
||
ADD https://github.com/tianon/gosu/releases/download/1.9/gosu-amd64 /usr/sbin/gosu
|
||
RUN chmod +x /usr/sbin/gosu \
|
||
&& apk --no-cache --no-progress add ca-certificates bash git linux-pam s6 curl openssh socat
|
||
|
||
ENV GOGS_CUSTOM /data/gogs
|
||
|
||
COPY . /app/gogs/
|
||
WORKDIR /app/gogs/
|
||
RUN ./docker/build.sh
|
||
|
||
# Configure LibC Name Service
|
||
COPY docker/nsswitch.conf /etc/nsswitch.conf
|
||
|
||
# Configure Docker Container
|
||
VOLUME ["/data"]
|
||
EXPOSE 22 3000
|
||
ENTRYPOINT ["docker/start.sh"]
|
||
CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]
|