From f900588c4b51d6da6be5d264a90dea8deeb54045 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 15 Oct 2022 00:01:59 +0800 Subject: [PATCH] update: docker entrypoint --- Dockerfile | 3 ++- main.php => kms.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) rename main.php => kms.php (98%) mode change 100644 => 100755 diff --git a/Dockerfile b/Dockerfile index 5ea9753..31b1b62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,10 +27,11 @@ WORKDIR /asset/etc/php8/ RUN sed -i 's/^;\(pid\)/\1/' /etc/php8/php-fpm.conf && mv /etc/php8/php-fpm.conf ./ COPY ./nginx/ /asset/etc/nginx/ COPY ./ /asset/kms-server/ +RUN ln -s /kms-server/kms.php /asset/usr/bin/kms FROM alpine:3.16 RUN apk add --no-cache nginx php8 php8-fpm php8-iconv php8-pcntl php8-posix COPY --from=asset /asset/ / EXPOSE 1688/tcp 1689/tcp WORKDIR /kms-server/ -ENTRYPOINT ["kms.php"] +ENTRYPOINT ["kms"] diff --git a/main.php b/kms.php old mode 100644 new mode 100755 similarity index 98% rename from main.php rename to kms.php index 8aab9cd..5cd8178 --- a/main.php +++ b/kms.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php8