-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathDockerfile
38 lines (29 loc) · 1.28 KB
/
Dockerfile
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
34
35
36
37
38
FROM centos:7
MAINTAINER Erik Jacobs <[email protected]>
ARG GOGS_VERSION="0.9.113"
LABEL name="Gogs - Go Git Service" \
vendor="Gogs" \
io.k8s.display-name="Gogs - Go Git Service" \
io.k8s.description="The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service." \
summary="The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service." \
io.openshift.expose-services="3000,gogs" \
io.openshift.tags="gogs" \
build-date="2017-04-02" \
version="${GOGS_VERSION}" \
release="1"
ENV HOME=/var/lib/gogs
COPY ./root /
RUN curl -L -o /etc/yum.repos.d/gogs.repo https://dl.packager.io/srv/pkgr/gogs/pkgr/installer/el/7.repo && \
rpm --import https://rpm.packager.io/key && \
yum -y install epel-release && \
yum -y --setopt=tsflags=nodocs install gogs-${GOGS_VERSION} nss_wrapper gettext && \
yum -y clean all && \
mkdir -p /var/lib/gogs
RUN /usr/bin/fix-permissions /var/lib/gogs && \
/usr/bin/fix-permissions /home/gogs && \
/usr/bin/fix-permissions /opt/gogs && \
/usr/bin/fix-permissions /etc/gogs && \
/usr/bin/fix-permissions /var/log/gogs
EXPOSE 3000
USER 997
CMD ["/usr/bin/rungogs"]