Skip to content

Commit

Permalink
Add ca-certificates to Docker image
Browse files Browse the repository at this point in the history
Running htmltest from Docker image fails if the site has HTTPS URLs
because the Docker image does not contain common CA certificates.
  • Loading branch information
ddgenome committed Oct 19, 2019
1 parent d9b1c7e commit 4ac4880
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ RUN CGO_ENABLED=0 go build -installsuffix 'static' -ldflags "-X main.date=`date

FROM ${TARGET} AS final

RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*

WORKDIR /bin
COPY --from=builder /app ./htmltest
WORKDIR /test
CMD [ "htmltest", "./"]
CMD [ "htmltest", "./"]

0 comments on commit 4ac4880

Please sign in to comment.