Skip to content

Commit a5b78da

Browse files
committed
Update dockerfiles and badges
1 parent ad9a157 commit a5b78da

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25 as builder
1+
FROM public.ecr.aws/docker/library/golang:1.25 as builder
22

33
## GOLANG env
44
ARG GOPROXY="https://proxy.golang.org|direct"
@@ -22,7 +22,8 @@ RUN make build
2222
CMD ["/amazon-ec2-instance-selector/build/ec2-instance-selector"]
2323

2424
# Copy the binary into a thin image
25-
FROM amazonlinux:2 as amazonlinux
25+
FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal as amazonlinux
26+
2627
FROM scratch
2728
WORKDIR /
2829
COPY --from=builder /amazon-ec2-instance-selector/build/ec2-instance-selector .

README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,19 @@
22

33
<h4>A CLI tool and go library which recommends instance types based on resource criteria like vcpus and memory.</h4>
44

5+
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/aws/amazon-ec2-instance-selector)
6+
[![GitHub License](https://img.shields.io/github/license/aws/amazon-ec2-instance-selector)](https://opensource.org/licenses/Apache-2.0)
7+
[![Docker Pulls](https://img.shields.io/docker/pulls/amazon/amazon-ec2-instance-selector)](https://hub.docker.com/r/amazon/amazon-ec2-instance-selector)
8+
59
<p>
6-
<a href="https://golang.org/doc/go1.23">
7-
<img src="https://img.shields.io/github/go-mod/go-version/aws/amazon-ec2-instance-selector?color=blueviolet" alt="go-version">
8-
</a>
9-
<a href="https://opensource.org/licenses/Apache-2.0">
10-
<img src="https://img.shields.io/badge/License-Apache%202.0-ff69b4.svg" alt="license">
11-
</a>
1210
<a href="https://goreportcard.com/report/github.com/aws/amazon-ec2-instance-selector">
1311
<img src="https://goreportcard.com/badge/github.com/aws/amazon-ec2-instance-selector" alt="go-report-card">
1412
</a>
15-
<a href="https://hub.docker.com/r/amazon/amazon-ec2-instance-selector">
16-
<img src="https://img.shields.io/docker/pulls/amazon/amazon-ec2-instance-selector" alt="docker-pulls">
17-
</a>
1813
</p>
1914

2015
![EC2 Instance Selector CI and Release](https://github.com/aws/amazon-ec2-instance-selector/workflows/EC2%20Instance%20Selector%20CI%20and%20Release/badge.svg)
2116

22-
<div>
23-
<hr>
24-
</div>
17+
---
2518

2619
## Summary
2720

test/license-test/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM public.ecr.aws/docker/library/golang:1.23
1+
FROM public.ecr.aws/docker/library/golang:1.25
22

33
WORKDIR /app
44

test/readme-test/rundoc-Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3
1+
FROM public.ecr.aws/docker/library/python:3
22

33

44
RUN pip3 install rundoc
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM golang:1.23
1+
FROM public.ecr.aws/docker/library/golang:1.25
22

33
RUN go install github.com/client9/misspell/cmd/misspell@v0.3.4
44

5-
CMD [ "/go/bin/misspell" ]
5+
CMD [ "/go/bin/misspell" ]

0 commit comments

Comments
 (0)