chore: update Dockerfile

This commit is contained in:
Dawid Wysokiński 2021-06-05 11:01:02 +02:00
parent 0e3599871f
commit e9c719c019
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,5 @@
FROM golang:alpine as builder
ENV CGO_ENABLED=0
# Set the Current Working Directory inside the container
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 . .
RUN apk --no-cache add musl-dev gcc build-base
RUN go generate ./...
RUN go build -o twhelpapi .