hardfiles- Unnamed repository; edit this file 'description' to name the repository. |
git clone git://git.acid.vegas/-c.git |
Log | Files | Refs | Archive | README | LICENSE |
commit 579a2ac26b59ffedf7a20aedb12bd2584fa3e7e8
parent a1e18fa2e96cbc688071b4c44ff03b733577470a Author: hgw <hgw7@yahoo.com> Date: Sun, 10 Dec 2023 05:21:33 +0000 Improve Dockerfile Diffstat:
|
2 files changed, 7 insertions(+), 2 deletions(-) | |
diff --git a/Dockerfile b/Dockerfile @@ -1,8 +1,12 @@ -FROM golang:1.21-alpine -WORKDIR /app +FROM golang:1.21-alpine as builder +WORKDIR /build COPY go.mod go.sum ./ RUN go mod download COPY *.go ./ RUN go build -o hardfiles main.go + +FROM golang:1.21-alpine as app +WORKDIR /app +COPY --from=builder /build/hardfiles . RUN mkdir files CMD ["./hardfiles"] \ No newline at end of file |