Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]