aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorÓscar García Amor <ogarcia@connectical.com>2015-10-02 21:18:13 +0200
committerÓscar García Amor <ogarcia@connectical.com>2015-10-02 21:18:13 +0200
commit3e7d8db7a2f52fcbe3e4a863d29d10eee90e2ff8 (patch)
treeb5b4c159e97ea6e6f40d48127fc21dc34103ca08 /Dockerfile
parent655b69cb1f7804462f9ce50314446d00bebbf345 (diff)
downloadgitea-3e7d8db7a2f52fcbe3e4a863d29d10eee90e2ff8.tar.gz
gitea-3e7d8db7a2f52fcbe3e4a863d29d10eee90e2ff8.zip
Several bugfixes in Docker build
- Removed unnecessary variables - Fixed symbolic links creation - Fixed enter point - Less intermediate containers
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 2 insertions, 10 deletions
diff --git a/Dockerfile b/Dockerfile
index fd431a083b..1f5c9b5d99 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,21 +9,13 @@ RUN echo "@edge http://dl-4.alpinelinux.org/alpine/edge/main" | tee -a /etc/apk/
&& apk -U --no-progress add ca-certificates bash git linux-pam s6@edge curl openssh socat \
&& chmod +x /usr/sbin/gosu
-# Configure Go and build Gogs
-ENV GOPATH /tmp/go
-ENV PATH $PATH:$GOPATH/bin
+ENV GOGS_CUSTOM /data/gogs
COPY . /app/gogs/
WORKDIR /app/gogs/
RUN ./docker/build.sh
-ENV GOGS_CUSTOM /data/gogs
-
-# Create git user for Gogs
-RUN adduser -D -g 'Gogs Git User' git -h /data/git/ -s /bin/sh && passwd -u git
-RUN echo "export GOGS_CUSTOM=/data/gogs" >> /etc/profile
-
# Configure Docker Container
VOLUME ["/data"]
EXPOSE 22 3000
-CMD ["./docker/start.sh"]
+CMD ["docker/start.sh"]