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