Skip to content

Commit 2093586

Browse files
committed
Merge pull request gogs#2016 from raxetul/develop
Dockerfile for RaspberryPi is added.
2 parents 117afe7 + 737da1a commit 2093586

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Dockerfile.rpi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM sander85/rpi-alpine:latest
2+
MAINTAINER roemer.jp@gmail.com, raxetul@gmail.com
3+
4+
# Install system utils & Gogs runtime dependencies
5+
ADD https://github.com/tianon/gosu/releases/download/1.6/gosu-armhf /usr/sbin/gosu
6+
RUN echo "@edge http://dl-4.alpinelinux.org/alpine/edge/main" | tee -a /etc/apk/repositories \
7+
&& echo "@community http://dl-4.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk/repositories \
8+
&& apk -U --no-progress upgrade \
9+
&& apk -U --no-progress add ca-certificates bash git linux-pam s6@edge curl openssh socat \
10+
&& chmod +x /usr/sbin/gosu
11+
12+
ENV GOGS_CUSTOM /data/gogs
13+
14+
COPY . /app/gogs/
15+
WORKDIR /app/gogs/
16+
RUN ./docker/build.sh
17+
18+
# Configure Docker Container
19+
VOLUME ["/data"]
20+
EXPOSE 22 3000
21+
ENTRYPOINT ["docker/start.sh"]
22+
CMD ["/usr/bin/s6-svscan", "/app/gogs/docker/s6/"]

0 commit comments

Comments
 (0)