-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ca-certificates to the container image
this makes it easier to get started with auto-internalizing installers hosted on HTTPS sites, which are basically all of them, without having to mount ca-certificates into the rewinged container first.
- Loading branch information
Showing
2 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM alpine:latest as certs | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
|
||
|
||
FROM scratch | ||
|
||
COPY <<EOF /etc/passwd | ||
rewinged:x:10002:10002:rewinged:/:/rewinged | ||
EOF | ||
|
||
# WORKDIR creates directories if they don't exist; with 755 and owned by root | ||
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
|
||
USER rewinged | ||
|
||
# WORKDIR creates directories if they don't exist; with 755 and owned by the current USER | ||
WORKDIR /packages | ||
WORKDIR /installers | ||
WORKDIR / | ||
|
||
COPY rewinged /rewinged | ||
|
||
USER rewinged | ||
ENTRYPOINT ["/rewinged"] | ||
|