Skip to content

Commit

Permalink
Merge pull request #12 from planetary-social/enable-cgo
Browse files Browse the repository at this point in the history
use base image that has glibc
  • Loading branch information
cooldracula authored Oct 18, 2023
2 parents 5df59f9 + 06ee10d commit 8e91429
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,9 +1,9 @@
FROM golang:1.21-alpine AS build
FROM golang:1.21 AS build

WORKDIR /usr/src/app
COPY . .
# get ssl certs to copy into scratch image, as it won't have them by default.
RUN apk update && apk add --no-cache git ca-certificates && update-ca-certificates
RUN apt update && apt-get install git ca-certificates && update-ca-certificates
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -v -o /usr/local/bin/crossposting-service ./cmd/crossposting-service


Expand Down

0 comments on commit 8e91429

Please sign in to comment.