Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
@@ -1,12 +1,14 @@
|
|
1 |
FROM alpine:latest
|
2 |
|
3 |
-
RUN apk update && apk upgrade && apk add php php-sqlite3 php-curl php-mysqli php-mbstring wget unzip
|
4 |
-
RUN wget -O /typecho.zip https://github.com/typecho/typecho/releases/download/v1.2.1/typecho.zip
|
5 |
-
RUN mkdir -p /var/www/html && unzip /typecho.zip -d /var/www/html
|
6 |
-
RUN chmod -R u+rwx,g+rwx,o+rwx /var/www/html/usr
|
7 |
#COPY config.inc.php /var/www/html/config.inc.php
|
8 |
|
9 |
WORKDIR /var/www/html
|
10 |
EXPOSE 7860
|
11 |
-
|
|
|
|
|
12 |
|
|
|
1 |
FROM alpine:latest
|
2 |
|
3 |
+
#RUN apk update && apk upgrade && apk add php php-sqlite3 php-curl php-mysqli php-mbstring wget unzip
|
4 |
+
#RUN wget -O /typecho.zip https://github.com/typecho/typecho/releases/download/v1.2.1/typecho.zip
|
5 |
+
#RUN mkdir -p /var/www/html && unzip /typecho.zip -d /var/www/html
|
6 |
+
#RUN chmod -R u+rwx,g+rwx,o+rwx /var/www/html/usr
|
7 |
#COPY config.inc.php /var/www/html/config.inc.php
|
8 |
|
9 |
WORKDIR /var/www/html
|
10 |
EXPOSE 7860
|
11 |
+
RUN apk add sudo
|
12 |
+
CMD ["sudo","whoami"]
|
13 |
+
#CMD ["php", "-S", "0.0.0.0:7860", "-t", "/var/www/html"]
|
14 |
|