Update Dockerfile
Browse files- Dockerfile +11 -4
Dockerfile
CHANGED
|
@@ -1,6 +1,13 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
|
|
|
|
|
|
| 3 |
RUN curl -o /typecho.zip https://github.com/typecho/typecho/releases/latest/download/typecho.zip
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|