File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
# -----------------------------------------#
2
- # Using image from circleci
2
+ # Using Go 1.23 with Alpine as base image
3
3
# -----------------------------------------#
4
- FROM cimg/go :1.23
4
+ FROM golang :1.23-alpine
5
5
6
6
# ## Install dependent packages
7
- RUN sudo curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
8
- RUN sudo unzip awscliv2.zip
9
- RUN sudo ./aws/install -i /usr/local/aws-cli -b /usr/local/bin
10
- RUN sudo rm -rf aws awscliv2.zip
11
- RUN sudo aws --version
12
-
13
- # Install dependencies
14
- RUN sudo apt-get update && sudo apt-get install -y make git build-essential
7
+ RUN apk add --no-cache curl unzip make git build-base && \
8
+ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
9
+ unzip awscliv2.zip && \
10
+ ./aws/install -i /usr/local/aws-cli -b /usr/local/bin && \
11
+ rm -rf aws awscliv2.zip && \
12
+ aws --version
15
13
16
14
# Install sql-migrate
17
15
RUN go install github.com/rubenv/sql-migrate/...@v1.7.0 && \
You can’t perform that action at this time.
0 commit comments