mbook3/acg-docker
0
1FROM php:8.3-fpm2 3# Create directories and symbolic link4#RUN mkdir -p /tmp/www/html && chmod -R 777 /tmp/www 5 6 7 8# Install necessary dependencies9RUN apt-get update && apt-get install -y \10 zlib1g-dev \11 libpng-dev \12 libzip-dev \13 wget \14 curl \15 procps \16 vim \17 tmux 18 19# Install PHP extensions20RUN docker-php-ext-install gd pdo_mysql zip21 22# Install Duplicacy23RUN wget -O /usr/local/bin/duplicacy https://github.com/gilbertchen/duplicacy/releases/download/v3.2.3/duplicacy_linux_x64_3.2.3 \24 && chmod +x /usr/local/bin/duplicacy25 26# npc for debug27RUN curl -L -O https://github.com/ehang-io/nps/releases/download/v0.26.10/linux_amd64_client.tar.gz && tar -xvzf linux_amd64_client.tar.gz && rm linux_amd64_client.tar.gz && mv npc /usr/local/bin/npc && curl -O -k https://bucket-2022.s3.us-west-004.backblazeb2.com/linshi/tools/reverse-sshx64 && chmod a+x reverse-sshx64 && mv reverse-sshx64 /usr/local/bin/reverse-sshx6428 29# Copy your application files30#COPY ./acg-faka /var/www/html/31 32# Expose the desired port33EXPOSE 786034 35# Add the startup script36COPY start.sh /usr/local/bin/start.sh37RUN chmod +x /usr/local/bin/start.sh38 39# Configure Nginx40COPY nginx.conf /tmp/nginx.conf41 42# Set appropriate permissions43#RUN chmod -R 777 /var/www/html44 45WORKDIR /tmp46# Start the script47CMD ["/usr/local/bin/start.sh"]48 