Spaces:
Paused
Paused
helloworld commited on
Commit ·
d7f72fe
1
Parent(s): 9cbeb3a
restruct the folder
Browse files- Dockerfile +35 -12
- mod2-storage/Dockerfile.storage +0 -36
- old/Dockerfile +13 -0
- Dockerfile.mod → old/Dockerfile.mod +0 -0
- docker-compose.yml → old/docker-compose.yml +0 -0
- mod2-storage/start.sh → start.sh +0 -0
Dockerfile
CHANGED
|
@@ -1,13 +1,36 @@
|
|
| 1 |
FROM php:8.3-apache
|
| 2 |
-
|
| 3 |
-
#
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM php:8.3-apache
|
| 2 |
+
|
| 3 |
+
# Install necessary dependencies
|
| 4 |
+
RUN apt-get update && apt-get install -y \
|
| 5 |
+
zlib1g-dev \
|
| 6 |
+
libpng-dev \
|
| 7 |
+
libzip-dev \
|
| 8 |
+
wget \
|
| 9 |
+
&& docker-php-ext-install gd pdo_mysql zip \
|
| 10 |
+
&& a2enmod rewrite
|
| 11 |
+
|
| 12 |
+
# Install Duplicacy
|
| 13 |
+
RUN wget -O /usr/local/bin/duplicacy https://github.com/gilbertchen/duplicacy/releases/download/v3.2.3/duplicacy_linux_x64_3.2.3 \
|
| 14 |
+
&& chmod +x /usr/local/bin/duplicacy
|
| 15 |
+
|
| 16 |
+
# Copy your application files
|
| 17 |
+
#COPY ./acg-faka /var/www/html/
|
| 18 |
+
|
| 19 |
+
# Expose the desired port
|
| 20 |
+
EXPOSE 7860
|
| 21 |
+
|
| 22 |
+
# Set the ServerName directive to suppress the FQDN warning
|
| 23 |
+
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
| 24 |
+
|
| 25 |
+
# Modify Apache to listen on port 7860
|
| 26 |
+
RUN sed -i 's/80/7860/g' /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf
|
| 27 |
+
|
| 28 |
+
# Add the startup script
|
| 29 |
+
COPY start.sh /usr/local/bin/start.sh
|
| 30 |
+
RUN chmod +x /usr/local/bin/start.sh
|
| 31 |
+
|
| 32 |
+
# Set appropriate permissions
|
| 33 |
+
RUN chmod -R 777 /var/www/html
|
| 34 |
+
|
| 35 |
+
# Start the script
|
| 36 |
+
CMD ["/usr/local/bin/start.sh"]
|
mod2-storage/Dockerfile.storage
DELETED
|
@@ -1,36 +0,0 @@
|
|
| 1 |
-
FROM php:8.3-apache
|
| 2 |
-
|
| 3 |
-
# Install necessary dependencies
|
| 4 |
-
RUN apt-get update && apt-get install -y \
|
| 5 |
-
zlib1g-dev \
|
| 6 |
-
libpng-dev \
|
| 7 |
-
libzip-dev \
|
| 8 |
-
wget \
|
| 9 |
-
&& docker-php-ext-install gd pdo_mysql zip \
|
| 10 |
-
&& a2enmod rewrite
|
| 11 |
-
|
| 12 |
-
# Install Duplicacy
|
| 13 |
-
RUN wget -O /usr/local/bin/duplicacy https://github.com/gilbertchen/duplicacy/releases/download/v3.2.3/duplicacy_linux_x64_3.2.3 \
|
| 14 |
-
&& chmod +x /usr/local/bin/duplicacy
|
| 15 |
-
|
| 16 |
-
# Copy your application files
|
| 17 |
-
#COPY ./acg-faka /var/www/html/
|
| 18 |
-
|
| 19 |
-
# Expose the desired port
|
| 20 |
-
EXPOSE 7860
|
| 21 |
-
|
| 22 |
-
# Set the ServerName directive to suppress the FQDN warning
|
| 23 |
-
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
| 24 |
-
|
| 25 |
-
# Modify Apache to listen on port 7860
|
| 26 |
-
RUN sed -i 's/80/7860/g' /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf
|
| 27 |
-
|
| 28 |
-
# Add the startup script
|
| 29 |
-
COPY start.sh /usr/local/bin/start.sh
|
| 30 |
-
RUN chmod +x /usr/local/bin/start.sh
|
| 31 |
-
|
| 32 |
-
# Set appropriate permissions
|
| 33 |
-
RUN chmod -R 777 /var/www/html
|
| 34 |
-
|
| 35 |
-
# Start the script
|
| 36 |
-
CMD ["/usr/local/bin/start.sh"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
old/Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM php:8.3-apache
|
| 2 |
+
RUN apt update
|
| 3 |
+
#RUN apt install -y mariadb-server
|
| 4 |
+
# 设置MariaDB root密码
|
| 5 |
+
#ENV MYSQL_ROOT_PASSWORD=123456
|
| 6 |
+
# 启动 MariaDB 服务
|
| 7 |
+
#RUN service mariadb start && mysqladmin -u root password "${MYSQL_ROOT_PASSWORD}" && mariadb -u root -p -e "CREATE DATABASE acg;"
|
| 8 |
+
RUN apt-get install -y zlib1g-dev
|
| 9 |
+
RUN apt-get install -y libpng-dev
|
| 10 |
+
RUN apt-get install -y libzip-dev
|
| 11 |
+
RUN docker-php-ext-install gd pdo_mysql zip
|
| 12 |
+
RUN a2enmod rewrite
|
| 13 |
+
EXPOSE 80
|
Dockerfile.mod → old/Dockerfile.mod
RENAMED
|
File without changes
|
docker-compose.yml → old/docker-compose.yml
RENAMED
|
File without changes
|
mod2-storage/start.sh → start.sh
RENAMED
|
File without changes
|