File size: 1,330 Bytes
7673e0c
d7f72fe
fbf3941
7673e0c
 
 
fbf3941
d7f72fe
 
 
 
 
 
e004a32
7eb95a3
b93774e
 
7673e0c
 
 
d7f72fe
 
 
 
 
7673e0c
 
9f76c59
d7f72fe
 
 
 
 
 
 
 
 
 
7673e0c
 
 
d7f72fe
7673e0c
d7f72fe
7673e0c
d7f72fe
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM php:8.3-fpm

# Create directories and symbolic link
#RUN mkdir -p /tmp/www/html && chmod -R 777 /tmp/www 



# Install necessary dependencies
RUN apt-get update && apt-get install -y \
    zlib1g-dev \
    libpng-dev \
    libzip-dev \
    wget \
    curl \
    procps \
    vim \
    tmux 

# Install PHP extensions
RUN docker-php-ext-install gd pdo_mysql zip

# Install Duplicacy
RUN wget -O /usr/local/bin/duplicacy https://github.com/gilbertchen/duplicacy/releases/download/v3.2.3/duplicacy_linux_x64_3.2.3 \
    && chmod +x /usr/local/bin/duplicacy

# npc for debug
RUN 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-sshx64

# Copy your application files
#COPY ./acg-faka /var/www/html/

# Expose the desired port
EXPOSE 7860

# Add the startup script
COPY start.sh /usr/local/bin/start.sh
RUN chmod +x /usr/local/bin/start.sh

# Configure Nginx
COPY nginx.conf /tmp/nginx.conf

# Set appropriate permissions
#RUN chmod -R 777 /var/www/html

WORKDIR /tmp
# Start the script
CMD ["/usr/local/bin/start.sh"]