Update
This commit is contained in:
parent
5d61b7087e
commit
c76dc7f0f0
19
Dockerfile
19
Dockerfile
@ -1,24 +1,21 @@
|
|||||||
FROM alpine:3.3
|
FROM alpine:3.7
|
||||||
MAINTAINER Julian Ospald <hasufell@posteo.de>
|
MAINTAINER Julian Ospald <hasufell@posteo.de>
|
||||||
|
|
||||||
|
|
||||||
ENV GOPATH /gopath
|
ENV GOPATH /gopath
|
||||||
ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin
|
ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin
|
||||||
|
|
||||||
WORKDIR /gopath/src/github.com/gogits/gogs/
|
WORKDIR /gopath/src/github.com/gogs/gogs/
|
||||||
|
|
||||||
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" \
|
RUN apk --no-cache add go redis sqlite openssh sudo supervisor git \
|
||||||
>> /etc/apk/repositories && \
|
bash linux-pam build-base linux-pam-dev shadow && \
|
||||||
apk --no-cache add go redis sqlite openssh sudo supervisor git \
|
git clone --depth=1 https://github.com/gogs/gogs.git \
|
||||||
bash linux-pam build-base linux-pam-dev shadow@testing && \
|
/gopath/src/github.com/gogs/gogs && \
|
||||||
git clone --depth=1 https://github.com/gogits/gogs.git \
|
|
||||||
/gopath/src/github.com/gogits/gogs && \
|
|
||||||
go get -v -tags "sqlite redis memcache cert pam" && \
|
go get -v -tags "sqlite redis memcache cert pam" && \
|
||||||
go build -tags "sqlite redis memcache cert pam" && \
|
go build -tags "sqlite redis memcache cert pam" && \
|
||||||
mkdir /app/ && \
|
mkdir /app/ && \
|
||||||
mv /gopath/src/github.com/gogits/gogs/ /app/gogs/ && \
|
mv /gopath/src/github.com/gogs/gogs/ /app/gogs/ && \
|
||||||
groupadd git && \
|
useradd --shell /bin/bash --system --comment gogs git && \
|
||||||
useradd --shell /bin/bash --system --comment gogits git && \
|
|
||||||
apk --no-cache del build-base linux-pam-dev shadow && \
|
apk --no-cache del build-base linux-pam-dev shadow && \
|
||||||
rm -rf "$GOPATH" /var/cache/apk/*
|
rm -rf "$GOPATH" /var/cache/apk/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user