diff options
author | Joshua Delsman <voxxit@users.noreply.github.com> | 2015-03-10 07:06:10 -0700 |
---|---|---|
committer | Joshua Delsman <voxxit@users.noreply.github.com> | 2015-03-10 07:06:10 -0700 |
commit | 406efbf3f543f6f5911a6c6d4da3b9f002d5023a (patch) | |
tree | 430d0f010b3cc455f305803ef4768be57c702dac /Dockerfile | |
parent | 5e763baa12e346f8eb577073399068802fa5d67a (diff) | |
download | gitea-406efbf3f543f6f5911a6c6d4da3b9f002d5023a.tar.gz gitea-406efbf3f543f6f5911a6c6d4da3b9f002d5023a.zip |
Adding a project-level Dockerfile & docker-compose script
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..bb2ed8d307 --- /dev/null +++ b/Dockerfile @@ -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" ] |