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.
27 lines
846 B
27 lines
846 B
#Build stage
|
|
FROM golang:1.11.2-alpine3.7 AS build-env
|
|
|
|
ARG VERSION
|
|
|
|
#Build deps
|
|
RUN apk --no-cache add build-base git
|
|
|
|
#Setup repo
|
|
COPY . ${GOPATH}/src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
|
|
WORKDIR ${GOPATH}/src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
|
|
|
|
RUN make clean docker-binary-web
|
|
|
|
FROM alpine:3.7
|
|
LABEL maintainer="info@jonasfranz.software"
|
|
|
|
COPY --from=build-env /go/src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator/gitea-github-migrator /usr/local/bin/gitea-github-migrator
|
|
|
|
VOLUME "/data"
|
|
VOLUME "/usr/local/bin/data"
|
|
|
|
COPY --from=build-env /go/src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator/config.example.yml /data/config.example.yml
|
|
|
|
RUN apk --no-cache add ca-certificates
|
|
|
|
ENTRYPOINT ["/usr/local/bin/gitea-github-migrator", "web", "-c", "/data/config.yml"]
|
|
|