diff --git a/cmd/server/Dockerfile b/Dockerfile similarity index 56% rename from cmd/server/Dockerfile rename to Dockerfile index b12442e..ff4d7a0 100644 --- a/cmd/server/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ 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 @@ -15,8 +15,8 @@ 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"]