summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorJoshua Delsman <voxxit@users.noreply.github.com>2015-03-10 07:06:10 -0700
committerJoshua Delsman <voxxit@users.noreply.github.com>2015-03-10 07:06:10 -0700
commit406efbf3f543f6f5911a6c6d4da3b9f002d5023a (patch)
tree430d0f010b3cc455f305803ef4768be57c702dac /Dockerfile
parent5e763baa12e346f8eb577073399068802fa5d67a (diff)
downloadgitea-406efbf3f543f6f5911a6c6d4da3b9f002d5023a.tar.gz
gitea-406efbf3f543f6f5911a6c6d4da3b9f002d5023a.zip
Adding a project-level Dockerfile & docker-compose script
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
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" ]