1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 12:59:11 -05:00
forgejo/Dockerfile

18 lines
374 B
Text
Raw Normal View History

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