Skip to content

Commit 19e2845

Browse files
committed
change base image from ubuntu to alpine
1 parent a8d1370 commit 19e2845

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ COPY --from=ui /workspace/dist/assets/*.css cmd/data/index.css
3636
RUN CGO_ENABLED=0 go build -v -a -ldflags "-w -s -X github.com/linuxsuren/api-testing/pkg/version.version=${VERSION}\
3737
-X github.com/linuxsuren/api-testing/pkg/version.date=$(date +%Y-%m-%d)" -o atest .
3838

39-
FROM docker.io/library/ubuntu:23.10
39+
FROM docker.io/library/alpine:3.20.3
4040

4141
LABEL "com.github.actions.name"="API testing"
4242
LABEL "com.github.actions.description"="API testing"
@@ -54,10 +54,8 @@ COPY --from=builder /workspace/atest /usr/local/bin/atest
5454
COPY --from=builder /workspace/LICENSE /LICENSE
5555
COPY --from=builder /workspace/README.md /README.md
5656

57-
RUN apt update -y && \
58-
# required for atest-store-git
59-
apt install -y --no-install-recommends ssh-client ca-certificates curl && \
60-
rm -rf /var/lib/apt/lists/*
61-
57+
# required for atest-store-git
58+
RUN apk add curl openssh-client
59+
6260
EXPOSE 8080
6361
CMD ["atest", "server", "--local-storage=/var/data/api-testing/*.yaml"]

0 commit comments

Comments
 (0)