Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #41 from c16a/feature/persistence
Browse files Browse the repository at this point in the history
Disable CGO in builds
  • Loading branch information
c16a authored Sep 26, 2021
2 parents 246ddde + ffc15e6 commit ff68fb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.17 as builder
FROM docker.io/golang:1.17 as builder

WORKDIR /app

Expand All @@ -8,7 +8,7 @@ RUN go mod download

ADD . .

ENV CGO_ENABLED=1
ENV CGO_ENABLED=0
RUN go build -ldflags="-s -w" -o binary github.com/c16a/hermes/app

FROM scratch
Expand Down

0 comments on commit ff68fb7

Please sign in to comment.