mirror of
https://github.com/go-gitea/gitea
synced 2024-11-05 01:34:25 +00:00
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>
26 lines
906 B
Docker
26 lines
906 B
Docker
FROM hypriot/rpi-alpine-scratch:v3.2
|
||
MAINTAINER jp@roemer.im, raxetul@gmail.com
|
||
|
||
# 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 \
|
||
&& echo "http://dl-4.alpinelinux.org/alpine/v3.3/main/" | tee /etc/apk/repositories \
|
||
&& echo "http://dl-4.alpinelinux.org/alpine/v3.3/community/" | tee -a /etc/apk/repositories \
|
||
&& apk -U --no-progress upgrade && rm -f /var/cache/apk/APKINDEX.* \
|
||
&& 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/"]
|