hardfiles/Dockerfile

12 lines
258 B
Docker
Raw Permalink Normal View History

2023-12-10 05:21:33 +00:00
FROM golang:1.21-alpine as builder
WORKDIR /build
2023-10-04 01:29:26 +00:00
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./
RUN go build -o hardfiles main.go
2023-12-10 05:21:33 +00:00
FROM golang:1.21-alpine as app
WORKDIR /app
COPY --from=builder /build/hardfiles .
2023-10-04 01:29:26 +00:00
RUN mkdir files
CMD ["./hardfiles"]