tntprojects commited on
Commit
a74231a
·
verified ·
1 Parent(s): 5954bc0

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +13 -0
dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Usamos una imagen oficial de WordPress con Apache
2
+ FROM wordpress:latest
3
+
4
+ # Cambiamos el puerto al 7860 (el que usa Hugging Face)
5
+ RUN sed -i 's/Listen 80/Listen 7860/' /etc/apache2/ports.conf
6
+ RUN sed -i 's/:80/:7860/' /etc/apache2/sites-available/000-default.conf
7
+
8
+ # Ajustamos permisos
9
+ RUN chown -R www-data:www-data /var/www/html
10
+
11
+ EXPOSE 7860
12
+
13
+ CMD ["apache2-foreground"]