Skip to content

Commit 5a2ddf6

Browse files
committed
fix(Dockerfile): Install ca-certificates
1 parent 4e5bba6 commit 5a2ddf6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ RUN go build cmd/main.go
2020

2121
FROM debian:latest
2222

23-
COPY --from=builder /app/main /bin/eslint
23+
RUN apt update && \
24+
apt install -y ca-certificates && \
25+
rm -rf /var/lib/apt/lists/*
2426

2527
RUN adduser --home /cocov cocov
2628

2729
RUN groupadd -f cocov
2830
RUN usermod -a -G cocov cocov
2931

32+
COPY --from=builder /app/main /bin/eslint
33+
3034
USER cocov
3135

3236
CMD ["eslint"]

0 commit comments

Comments
 (0)