Skip to content

Commit

Permalink
change dockerfile (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhiran authored Oct 30, 2024
1 parent 41ca248 commit 05094b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 42 deletions.
6 changes: 3 additions & 3 deletions cmd/server/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ RUN apk update && apk upgrade && apk add --no-cache ca-certificates tzdata musl-
WORKDIR /go/src
COPY ./ ./

RUN cd ./cmd/sequencer && CGO_ENABLED=1 CGO_LDFLAGS='-L./lib/linux-x86_64 -lioConnectCore' go build -ldflags "-s -w -extldflags '-static'" -o pebble-sequencer
RUN cd ./cmd/server && CGO_ENABLED=1 CGO_LDFLAGS='-L./lib/linux-x86_64 -lioConnectCore' go build -ldflags "-s -w -extldflags '-static'" -o pebble-server

FROM --platform=linux/amd64 alpine:3.20 AS runtime

ENV LANG en_US.UTF-8

RUN apk add --no-cache ca-certificates tzdata

COPY --from=builder /go/src/cmd/sequencer/pebble-sequencer /go/bin/pebble-sequencer
COPY --from=builder /go/src/cmd/server/pebble-server /go/bin/pebble-server
EXPOSE 9000

WORKDIR /go/bin
ENTRYPOINT ["/go/bin/pebble-sequencer"]
ENTRYPOINT ["/go/bin/pebble-server"]
39 changes: 0 additions & 39 deletions docker-compose-dep.yml

This file was deleted.

0 comments on commit 05094b9

Please sign in to comment.