mirror of https://github.com/gogits/gogs.git
Joshua Delsman
10 years ago
2 changed files with 29 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||||||
|
FROM google/golang:latest |
||||||
|
|
||||||
|
ENV TAGS="sqlite redis memcache cert" USER="git" HOME="/home/git" |
||||||
|
|
||||||
|
COPY . /gopath/src/github.com/gogits/gogs/ |
||||||
|
WORKDIR /gopath/src/github.com/gogits/gogs/ |
||||||
|
|
||||||
|
RUN go get -v -tags="$TAGS" github.com/gogits/gogs \ |
||||||
|
&& go build -tags="$TAGS" \ |
||||||
|
&& useradd -d $HOME -m $USER \ |
||||||
|
&& chown -R $USER . |
||||||
|
|
||||||
|
USER $USER |
||||||
|
|
||||||
|
ENTRYPOINT [ "./gogs" ] |
||||||
|
|
||||||
|
CMD [ "web" ] |
Loading…
Reference in new issue