Skip to content

Commit c24be04

Browse files
authored
Update Dockerfile
1 parent 7c6fbce commit c24be04

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Dockerfile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
#-----------------------------------------#
2-
# Using image from circleci
2+
# Using Go 1.23 with Alpine as base image
33
#-----------------------------------------#
4-
FROM cimg/go:1.23
4+
FROM golang:1.23-alpine
55

66
### 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
1513

1614
# Install sql-migrate
1715
RUN go install github.com/rubenv/sql-migrate/...@v1.7.0 && \

0 commit comments

Comments
 (0)