From 1d6f80b3cf9b0581c91e13c23522344d02f7fc14 Mon Sep 17 00:00:00 2001
From: Jonas Franz <info@jonasfranz.software>
Date: Thu, 26 Jul 2018 19:08:35 +0200
Subject: [PATCH] Fix GitHub auth by installing ca certificates

Signed-off-by: Jonas Franz <info@jonasfranz.software>
---
 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"]