Create Dockerfile
This commit is contained in:
parent
4357542f09
commit
5726ab5eb8
1 changed files with 14 additions and 0 deletions
14
services/frostfs-uploader/Dockerfile
Normal file
14
services/frostfs-uploader/Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM golang:1.20 as builder
|
||||||
|
WORKDIR /app
|
||||||
|
COPY go.mod go.sum ./
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/bin/uploader main.go
|
||||||
|
|
||||||
|
FROM alpine:3.17
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=builder /app/bin/uploader /app/uploader
|
||||||
|
COPY config.yaml /app/config.yaml
|
||||||
|
EXPOSE 8081
|
||||||
|
ENTRYPOINT ["/app/uploader"]
|
Loading…
Add table
Reference in a new issue