From cc5818880e74f0abac60cf11082e467826d327b4 Mon Sep 17 00:00:00 2001 From: dierbei <1628652790@qq.com> Date: Tue, 25 Jul 2023 08:21:48 +0000 Subject: [PATCH] fix: update Dockerfile Fix #166 --- image/Dockerfile | 4 ++-- image/Prebuilt.dockerfile | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/image/Dockerfile b/image/Dockerfile index 30bd30e5..86691c49 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -31,5 +31,5 @@ RUN apt-get update && \ RUN mkdir -p /app RUN mkdir -p /opt COPY --from=build-wws ${WWS_BUILD_DIR}/build/wws /opt - -CMD ["/opt/wws", "/app/", "--host", "0.0.0.0"] +ENTRYPOINT ["/opt/wws"] +CMD ["/app/", "--host", "0.0.0.0"] diff --git a/image/Prebuilt.dockerfile b/image/Prebuilt.dockerfile index 89342104..a1e2e500 100644 --- a/image/Prebuilt.dockerfile +++ b/image/Prebuilt.dockerfile @@ -17,5 +17,6 @@ LABEL org.opencontainers.image.licenses="Apache-2.0" COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --chmod=755 ./wws-$TARGETARCH /wws -CMD ["/wws", "/app/", "--host", "0.0.0.0"] +ENTRYPOINT ["/wws"] +CMD ["/app/", "--host", "0.0.0.0"]