mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-09 20:05:22 +02:00
some modify, I need to move my workenv to foreign county, network in china is so slow.
This commit is contained in:
parent
6712aa21fa
commit
54b8172a24
28 changed files with 120 additions and 375 deletions
17
Dockerfile
17
Dockerfile
|
@ -1,17 +0,0 @@
|
|||
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…
Add table
Add a link
Reference in a new issue