From d8ab1fe098e2edf27da3ac8cd0d1be082e4c4f2a Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Thu, 26 Jul 2018 17:09:10 +0000 Subject: [PATCH] Fix GitHub Auth by installing new ca certificates (#26) --- Dockerfile | 4 +++- Dockerfile.web | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b77aa7c..6d24a57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM golang:1.10-alpine3.7 AS build-env ARG VERSION #Build deps -RUN apk --no-cache add build-base git ca-certificates +RUN apk --no-cache add build-base git #Setup repo COPY . ${GOPATH}/src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator @@ -18,4 +18,6 @@ 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 +RUN apk --no-cache add ca-certificates + ENTRYPOINT ["/usr/local/bin/gitea-github-migrator"] diff --git a/Dockerfile.web b/Dockerfile.web index 2f47552..80910aa 100644 --- a/Dockerfile.web +++ b/Dockerfile.web @@ -4,7 +4,7 @@ FROM golang:1.10-alpine3.7 AS build-env ARG VERSION #Build deps -RUN apk --no-cache add build-base git ca-certificates +RUN apk --no-cache add build-base git #Setup repo COPY . ${GOPATH}/src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator @@ -22,4 +22,6 @@ 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"]