Skip to content

Commit

Permalink
fix glib issue on golang 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev committed Jul 5, 2023
1 parent 6cbd250 commit 3874c67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion photographer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ COPY go.sum ./
RUN go mod download
COPY ./cmd ./cmd
COPY ./pkg ./pkg
RUN cd cmd/photographer && go build -o /main
# To use the libc functions for net and os/user, and still get a static binary (for containers)
# https://github.com/remotemobprogramming/mob/issues/393
RUN cd cmd/photographer && go build -ldflags "-linkmode 'external' -extldflags '-static'" -o /main

FROM tezos/tezos:${VERSION} as tezos

Expand Down
4 changes: 3 additions & 1 deletion server.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ COPY go.sum ./
RUN go mod download
COPY ./cmd ./cmd
COPY ./pkg ./pkg
RUN cd cmd/server && go build -o /main
# To use the libc functions for net and os/user, and still get a static binary (for containers)
# https://github.com/remotemobprogramming/mob/issues/393
RUN cd cmd/server && go build -ldflags "-linkmode 'external' -extldflags '-static'" -o /main

FROM debian:buster-slim
COPY --from=builder /main ./
Expand Down

0 comments on commit 3874c67

Please sign in to comment.