Skip to content

Commit 7583cab

Browse files
committed
fix: fix manual build
1 parent 48a3a64 commit 7583cab

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

docker/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ RUN echo '' > /etc/apk/repositories && \
66
RUN apk add upx
77
WORKDIR /build
88
ENV CGO_ENABLED=0
9-
COPY ./main.go .
10-
COPY ./go.mod .
9+
COPY . .
1110
RUN go build -ldflags "-w -s"
12-
RUN upx -9 -o cert-maker.minify cert-maker && mv cert-maker.minify cert-maker
11+
RUN upx -9 -o certs-maker.minify certs-maker && mv certs-maker.minify certs-maker
1312

1413
FROM alpine:3.16
1514
RUN echo '' > /etc/apk/repositories && \
@@ -18,5 +17,5 @@ RUN echo '' > /etc/apk/repositories && \
1817
echo "Asia/Shanghai" > /etc/timezone
1918
RUN apk add openssl && rm -rf /var/cache/apk/*
2019
WORKDIR /
21-
COPY --from=Builder /build/cert-maker /bin/cert-maker
22-
ENTRYPOINT ["cert-maker"]
20+
COPY --from=Builder /build/certs-maker /bin/certs-maker
21+
ENTRYPOINT ["certs-maker"]

0 commit comments

Comments
 (0)