summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-26 02:36:55 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-26 02:36:55 +0200
commitedf770e69bd379ba29ce07b614549bfb6ffa3045 (patch)
treec2437d8304c733641657bdf7b77d194bc17582a3 /Dockerfile
downloadgogs-edf770e69bd379ba29ce07b614549bfb6ffa3045.tar.gz
gogs-edf770e69bd379ba29ce07b614549bfb6ffa3045.tar.bz2
gogs-edf770e69bd379ba29ce07b614549bfb6ffa3045.tar.xz
gogs-edf770e69bd379ba29ce07b614549bfb6ffa3045.zip
Adapted for OpenShift (cron, syslog, and ssh services are not running)
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..78ffc0f
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,14 @@
+FROM gogs/gogs:latest
+
+MAINTAINER Suren A. Chilingaryan <csa@suren.me>
+
+COPY ./root /
+
+RUN mkdir -p /data/gogs/data /data/gogs/conf /data/gogs/log /data/git /data/ssh && \
+ /usr/bin/fix-permissions /data && \
+ ln -sfn /data/gogs/log /app/gogs/log && \
+ ln -sfn /data/gogs/data /app/gogs/data && \
+ /usr/bin/fix-permissions /etc/passwd
+
+ENTRYPOINT ["/entrypoint"]
+CMD ["/usr/bin/rungogs"]