You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 686B

123456789101112131415161718192021222324252627
  1. FROM golang:1.12.4-alpine3.9 as build-container
  2. ENV GITEA_VER="1.8.0"
  3. ENV TAGS="bindata redis"
  4. # The build container
  5. RUN apk add -U build-base git && \
  6. go get -d -u code.gitea.io/gitea && \
  7. cd $GOPATH/src/code.gitea.io/gitea && \
  8. git checkout tags/v$GITEA_VER && \
  9. make clean generate build
  10. # The release container
  11. FROM alpine:3.9
  12. RUN addgroup git && \
  13. adduser -D -S -u 1000 -h /opt -G git git && \
  14. apk add -U --no-cache git openssh-keygen
  15. COPY --from=build-container /go/src/code.gitea.io/gitea/custom /opt/custom
  16. COPY --from=build-container /go/src/code.gitea.io/gitea/gitea /opt/gitea
  17. RUN chown git:git -R /opt
  18. USER git
  19. ENV USER=git
  20. CMD /opt/gitea web