Explorar o código

Initial commit

Spencer Gardner %!s(int64=7) %!d(string=hai) anos
achega
8d5342fd79
Modificáronse 1 ficheiros con 26 adicións e 0 borrados
  1. 26 0
      Dockerfile

+ 26 - 0
Dockerfile

@@ -0,0 +1,26 @@
+from alpine:latest as build
+
+RUN apk add --update go git gcc g++
+
+ENV GOPATH /go
+
+RUN go get -u github.com/gogits/gogs
+
+WORKDIR $GOPATH/src/github.com/gogits/gogs
+
+RUN go build -tags "sqlite"
+
+RUN rm -rf .git vendor conf docker pkg
+
+
+from alpine:latest as run
+
+RUN apk add --update git openssh-keygen
+
+ENV USER root
+
+COPY --from=build /go/src/github.com/gogits/gogs /gogs
+
+ADD custom /gogs/custom
+
+WORkDIR /gogs