kevin commited on
Commit
278188c
·
1 Parent(s): df4703d
Files changed (3) hide show
  1. .gitignore +1 -0
  2. Dockerfile +28 -0
  3. README.md +1 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .idea
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM php:8.0-apache
2
+
3
+ WORKDIR /var/www/html
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ git \
7
+ unzip \
8
+ libonig-dev \
9
+ libzip-dev \
10
+ && docker-php-ext-install pdo pdo_mysql mbstring zip \
11
+ && a2enmod rewrite
12
+
13
+ RUN git clone https://codeberg.org/kevin21/ittools.git .
14
+
15
+ RUN sed -i 's|/var/www/html|/var/www/html/public|g' /etc/apache2/sites-available/000-default.conf
16
+
17
+ #RUN #sed -i '/<\/VirtualHost>/i RewriteEngine On\nRewriteRule ^/admin(.*)$ https://linux.do/u/f-droid [R=301,L]' /etc/apache2/sites-available/000-default.conf
18
+
19
+ RUN sed -i 's/Listen 80/Listen 8080/' /etc/apache2/ports.conf
20
+ RUN sed -i 's/<VirtualHost \*:80>/<VirtualHost \*:8080>/' /etc/apache2/sites-available/000-default.conf
21
+
22
+ RUN chmod -R 777 /var/www/html
23
+
24
+ RUN apt-get clean && rm -rf /var/lib/apt/lists/*
25
+
26
+ EXPOSE 8080
27
+
28
+ CMD ["apache2-foreground"]
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: pink
5
  colorTo: purple
6
  sdk: docker
7
  pinned: false
 
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
5
  colorTo: purple
6
  sdk: docker
7
  pinned: false
8
+ app_port: 8080
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference