Explorar el Código

Initial commit

Spencer Gardner hace 7 años
commit
8d5342fd79
Se han modificado 1 ficheros con 26 adiciones y 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