Browse Source

update: docker entrypoint

master
Dnomd343 2 years ago
parent
commit
f900588c4b
  1. 3
      Dockerfile
  2. 1
      kms.php

3
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 ./ RUN sed -i 's/^;\(pid\)/\1/' /etc/php8/php-fpm.conf && mv /etc/php8/php-fpm.conf ./
COPY ./nginx/ /asset/etc/nginx/ COPY ./nginx/ /asset/etc/nginx/
COPY ./ /asset/kms-server/ COPY ./ /asset/kms-server/
RUN ln -s /kms-server/kms.php /asset/usr/bin/kms
FROM alpine:3.16 FROM alpine:3.16
RUN apk add --no-cache nginx php8 php8-fpm php8-iconv php8-pcntl php8-posix RUN apk add --no-cache nginx php8 php8-fpm php8-iconv php8-pcntl php8-posix
COPY --from=asset /asset/ / COPY --from=asset /asset/ /
EXPOSE 1688/tcp 1689/tcp EXPOSE 1688/tcp 1689/tcp
WORKDIR /kms-server/ WORKDIR /kms-server/
ENTRYPOINT ["kms.php"] ENTRYPOINT ["kms"]

1
main.php → kms.php

@ -1,3 +1,4 @@
#!/usr/bin/env php8
<?php <?php
$version = 'v1.2.0-rc2'; $version = 'v1.2.0-rc2';
Loading…
Cancel
Save