-
-
Notifications
You must be signed in to change notification settings - Fork 275
/
Dockerfile
24 lines (18 loc) 路 667 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -----------------------------------------------------------------------------
# Build...
FROM golang:1.21-alpine3.19 AS build
WORKDIR /popeye
COPY go.mod go.sum main.go Makefile ./
COPY internal internal
COPY cmd cmd
COPY types types
COPY pkg pkg
RUN apk --no-cache add make git gcc libc-dev curl ca-certificates binutils-gold && make build
# -----------------------------------------------------------------------------
# Image...
FROM alpine:3.19.0
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /popeye/execs/popeye /bin/popeye
RUN adduser -u 5000 -D nonroot
USER 5000
ENTRYPOINT [ "/bin/popeye" ]