Skip to content

Commit

Permalink
Merge pull request #3 from midnightrun/enhancement/reduce_container_i…
Browse files Browse the repository at this point in the history
…mage_size

Container Image Enhancements
  • Loading branch information
narqo authored May 13, 2020
2 parents 86166c0 + ca914e2 commit 302b6b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM alpine
FROM alpine as build

RUN apk add --no-cache ca-certificates
RUN apk add --update --no-cache ca-certificates

FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY github-weather /bin/github-weather

ENTRYPOINT ["/bin/github-weather"]
ENTRYPOINT ["/bin/github-weather"]

0 comments on commit 302b6b4

Please sign in to comment.