Skip to content

Commit a108611

Browse files
authored
fix(docker): fix k8s args overriding CMD args in dockerfile (#4302)
The kubernetes container args overrides the CMD args on dockerfile, replaced them with Entrypoint
1 parent f1c753d commit a108611

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

stacks/flow.Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ARG PEERDB_VERSION_SHA_SHORT
5555
ENV PEERDB_VERSION_SHA_SHORT=${PEERDB_VERSION_SHA_SHORT}
5656

5757
EXPOSE 8112 8113
58-
CMD ["api", "--port", "8112", "--gateway-port", "8113"]
58+
ENTRYPOINT [ "/home/peerdb/peer-flow", "api", "--port", "8112", "--gateway-port", "8113"]
5959

6060
FROM flow-base-debug AS flow-api-debug
6161

@@ -77,7 +77,7 @@ ENV OTEL_EXPORTER_OTLP_COMPRESSION=gzip
7777
ARG PEERDB_VERSION_SHA_SHORT
7878
ENV PEERDB_VERSION_SHA_SHORT=${PEERDB_VERSION_SHA_SHORT}
7979

80-
CMD ["worker"]
80+
ENTRYPOINT [ "/home/peerdb/peer-flow", "worker"]
8181

8282
FROM flow-base-debug AS flow-worker-debug
8383
ENV OTEL_METRIC_EXPORT_INTERVAL=10000
@@ -91,7 +91,7 @@ FROM flow-base AS flow-snapshot-worker
9191

9292
ARG PEERDB_VERSION_SHA_SHORT
9393
ENV PEERDB_VERSION_SHA_SHORT=${PEERDB_VERSION_SHA_SHORT}
94-
CMD ["snapshot-worker"]
94+
ENTRYPOINT [ "/home/peerdb/peer-flow", "snapshot-worker"]
9595

9696
FROM flow-base-debug AS flow-snapshot-worker-debug
9797

@@ -104,4 +104,4 @@ FROM flow-base AS flow-maintenance
104104

105105
ARG PEERDB_VERSION_SHA_SHORT
106106
ENV PEERDB_VERSION_SHA_SHORT=${PEERDB_VERSION_SHA_SHORT}
107-
CMD ["maintenance"]
107+
ENTRYPOINT [ "/home/peerdb/peer-flow", "maintenance"]

0 commit comments

Comments
 (0)