Skip to content

Commit 9e0c387

Browse files
committed
Changed Dockerfile to build with Amazon linux
1 parent e2215b0 commit 9e0c387

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Dockerfile

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
FROM golang:alpine3.12 as build
1+
FROM amazonlinux:latest AS build
22

3-
RUN apk add -U --no-cache ca-certificates git bash
3+
RUN yum -y update && rm -rf /var/cache/yum/*
4+
RUN yum install -y \
5+
ca-certificates \
6+
git \
7+
bash \
8+
go
49

510
RUN mkdir /aws-sigv4-proxy
611
WORKDIR /aws-sigv4-proxy
@@ -14,7 +19,7 @@ COPY . .
1419
RUN CGO_ENABLED=0 GOOS=linux go build -o /go/bin/aws-sigv4-proxy
1520

1621
FROM scratch
17-
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
22+
COPY --from=build /etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/
1823
COPY --from=build /go/bin/aws-sigv4-proxy /go/bin/aws-sigv4-proxy
1924

2025
ENTRYPOINT [ "/go/bin/aws-sigv4-proxy" ]

0 commit comments

Comments
 (0)