From 869d7caf49b8bf33e1cc7fcce89f3da6c790169c Mon Sep 17 00:00:00 2001 From: golangboy Date: Tue, 20 Feb 2024 16:07:32 +0800 Subject: [PATCH] refactor --- Dockerfile | 4 ++-- start.sh => docker-entrypoint.sh | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename start.sh => docker-entrypoint.sh (100%) diff --git a/Dockerfile b/Dockerfile index 974fca6..8089086 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,9 @@ RUN export CGO_ENABLED=0 && go build -o app . WORKDIR /app/server RUN export CGO_ENABLED=0 && go build -o app . WORKDIR /app -RUN chmod +x start.sh +RUN chmod +x docker-entrypoint.sh FROM alpine COPY --from=builder /app /app EXPOSE 80 1180 -CMD ["/app/start.sh"] +CMD ["/app/docker-entrypoint.sh"] diff --git a/start.sh b/docker-entrypoint.sh similarity index 100% rename from start.sh rename to docker-entrypoint.sh