mirror of
https://tvoygit.ru/Djam/artmigrator.git
synced 2025-02-23 18:32:46 +00:00
20 lines
264 B
Docker
20 lines
264 B
Docker
FROM docker.io/golang:1.23-alpine AS builder
|
|
|
|
COPY . /build
|
|
|
|
RUN apk add --no-cache git && \
|
|
ping -c5 tvoygit.ru && \
|
|
export GOPROXY=direct && \
|
|
cd /build && \
|
|
go build -o ./app .
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=builder /build/app /app
|
|
|
|
CMD [/app]
|
|
|
|
|
|
|
|
|
|
|