edwagbb commited on
Commit
cfca02d
·
1 Parent(s): 2e5cb43

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -4
Dockerfile CHANGED
@@ -1,6 +1,13 @@
1
- FROM php:8.0-apache
2
 
 
 
3
  RUN curl -o /typecho.zip https://github.com/typecho/typecho/releases/latest/download/typecho.zip
4
- RUN sed -i 's/:80/:7860/g' /etc/apache2/sites-enabled/000-default.conf
5
- RUN service apache2 restart
6
- RUN cat /etc/apache2/sites-enabled/000-default.conf
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
 
3
+ RUN apt-get update
4
+ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y php
5
  RUN curl -o /typecho.zip https://github.com/typecho/typecho/releases/latest/download/typecho.zip
6
+ WORKDIR /var/www/html
7
+
8
+ #COPY index.php /var/www/html
9
+
10
+ EXPOSE 7860
11
+
12
+ CMD ["php", "-S", "0.0.0.0:7860", "-t", "/var/www/html"]
13
+