From aafd8aaea6278141f0889c1e4d6c42767f8786e5 Mon Sep 17 00:00:00 2001 From: Serial <69764315+Serial-ATA@users.noreply.github.com> Date: Mon, 21 Oct 2024 10:59:07 -0400 Subject: [PATCH] chore: remove docker entrypoint script --- Dockerfile | 4 +--- docker/entrypoint.sh | 6 ------ 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 docker/entrypoint.sh diff --git a/Dockerfile b/Dockerfile index fba7ae9..2b9091b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,6 @@ RUN cargo build --release FROM debian:bookworm-slim AS runtime WORKDIR /app COPY --from=chef /app/target/release/{{project-name}} /usr/local/bin -COPY --from=chef /app/docker/entrypoint.sh /usr/local/bin -RUN chmod +x /usr/local/bin/entrypoint.sh LABEL org.opencontainers.image.authors="{{authors}}" LABEL org.opencontainers.image.description="{{project-description}}" @@ -28,4 +26,4 @@ ENV BIND_PORT=9632 ENV BLUEPRINT_ID=0 ENV SERVICE_ID=0 -ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/{{project-name}}", "run"] \ No newline at end of file diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh deleted file mode 100644 index c6c071b..0000000 --- a/docker/entrypoint.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -exec /usr/local/bin/{{project-name}} run \ - --blueprint-id="$BLUEPRINT_ID" \ - --service-id="$SERVICE_ID" \ - --bind-addr="$BIND_ADDR" \ - --bind-port="$BIND_PORT" "$@" \ No newline at end of file