Skip to content

Commit

Permalink
Updating SSL/TLS certificates into Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrt committed Nov 25, 2020
1 parent 18bfcc7 commit 7f8e30f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.1.1

- Update SSL/TLS certificates into Docker image

## 2.1.0

- Authorize encryption of already encrypted volumes (key migration)
Expand Down Expand Up @@ -39,4 +43,4 @@
- Upgrade Boto modules
- Changing old-style Python strings to new Python 3.6 fstrings
- Simplifying encryption algorithm (since AWS let create encrypted volume from snapshot directly)
- Fixing a bug on IO1 volume encryption
- Fixing a bug on IO1 volume encryption
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM golang:1.14.3-alpine3.11 AS builder
WORKDIR /go/src/github.com/jbrt/ec2cryptomatic
COPY . .
RUN apk add -U --no-cache ca-certificates
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ec2cryptomatic .

FROM scratch
LABEL maintainer="[email protected]"
WORKDIR /app/
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /go/src/github.com/jbrt/ec2cryptomatic/ec2cryptomatic .
ENTRYPOINT ["./ec2cryptomatic"]
CMD ["--help"]

0 comments on commit 7f8e30f

Please sign in to comment.