From 63f71ae8a7518e781c823896654556fdcd1d3dcd Mon Sep 17 00:00:00 2001 From: sash39 Date: Wed, 10 Jan 2024 19:33:45 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12156d3..b0a6f6e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,9 @@ FROM golang:1.16 AS builder # Copy the code from the host and compile it WORKDIR $GOPATH/src/github.com/netology-code/sdvps-materials COPY . ./ -RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /app . +RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o myapp . FROM alpine:latest RUN apk -U add ca-certificates -COPY --from=builder /app /app +COPY --from=builder /go/src/github.com/netology-code/sdvps-materials/myapp /app CMD ["/app"]