-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDockerfile.rpi
More file actions
34 lines (24 loc) · 859 Bytes
/
Dockerfile.rpi
File metadata and controls
34 lines (24 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM resin/rpi-raspbian:stretch
ENV DEBIAN_FRONTEND noninteractive
ENV INITSYSTEM on
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gcc g++ libc6-dev make golang \
git git-annex openssh-server \
python-pip python-setuptools \
socat tzdata patch rsync \
&& rm -rf /var/lib/apt/lists/*
RUN pip install supervisor pyyaml
ENV GOGS_CUSTOM /data/gogs
# Configure LibC Name Service
COPY docker/nsswitch.conf /etc/nsswitch.conf
COPY docker /app/gogs/docker
WORKDIR /app/gogs/build
COPY . .
RUN ./docker/build-go.sh
RUN ./docker/build.sh
RUN ./docker/finalize.sh
COPY docker/nsswitch.conf /etc/nsswitch.conf
VOLUME ["/data"]
EXPOSE 22 3000
ENTRYPOINT ["/app/gogs/docker/start.sh"]