Skip to content

Commit c478c7b

Browse files
committed
added ARG for TARGETOS and TARGETARCH
1 parent 6b96f22 commit c478c7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
ARG TARGETOS
2+
ARG TARGETARCH
3+
14
FROM alpine:latest
25
RUN apk --no-cache add ca-certificates
36

47
WORKDIR /app
58

6-
COPY dist/$TARGETOS/$TARGETARCH/app .
9+
COPY dist/${TARGETOS}/${TARGETARCH}/app .
710

811
CMD ["./app"]

0 commit comments

Comments
 (0)