1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Several bugfixes in Docker build

- Removed unnecessary variables
- Fixed symbolic links creation
- Fixed enter point
- Less intermediate containers
This commit is contained in:
Óscar García Amor
2015-10-02 21:18:13 +02:00
parent 655b69cb1f
commit 3e7d8db7a2
3 changed files with 16 additions and 18 deletions

View File

@@ -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"]