Skip to content

Commit ae616cb

Browse files
committed
build: update dockerfile
1 parent e1f6efd commit ae616cb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
FROM alpine:latest
2-
ARG TARGETOS
3-
ARG TARGETARCH
2+
ARG TARGETPLATFORM
43

5-
COPY /build/output/derper_${TARGETOS}_${TARGETARCH} /usr/bin/derper
6-
RUN chmod +x /usr/bin/derper
4+
RUN apk update && \
5+
apk upgrade --no-cache && \
6+
apk add --no-cache ca-certificates &&\
7+
rm -rf /var/cache/apk/*
78

9+
COPY /build/output/${TARGETPLATFORM}/derper /usr/bin/derper
810
WORKDIR /data
911

1012
ENTRYPOINT [ "/usr/bin/derper" ]

0 commit comments

Comments
 (0)