ozon-task/Dockerfile

13 lines
173 B
Docker
Raw Permalink Normal View History

2024-06-24 23:34:10 +00:00
FROM golang:1.22.4
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /ozon-task cmd/server.go
CMD ["/ozon-task"]