chore: update Dockerfile
This commit is contained in:
parent
8099a64854
commit
211e44838f
|
@ -1,6 +1,5 @@
|
||||||
FROM golang:alpine as builder
|
FROM golang:alpine as builder
|
||||||
|
|
||||||
ENV CGO_ENABLED=0
|
|
||||||
# Set the Current Working Directory inside the container
|
# Set the Current Working Directory inside the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
@ -12,6 +11,7 @@ RUN go mod download
|
||||||
|
|
||||||
# Copy the source from the current directory to the Working Directory inside the container
|
# Copy the source from the current directory to the Working Directory inside the container
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN apk --no-cache add musl-dev gcc build-base
|
||||||
RUN go generate ./...
|
RUN go generate ./...
|
||||||
RUN go build -o zdamegzawodowy .
|
RUN go build -o zdamegzawodowy .
|
||||||
|
|
||||||
|
|
Reference in New Issue