edwagbb commited on
Commit
5b2ec01
1 Parent(s): 72a79b8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -8
Dockerfile CHANGED
@@ -1,15 +1,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
- RUN echo 'Defaults !requiretty' >> /etc/sudoers && echo 'ALL ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
13
- CMD ["sudo","whoami"]
14
- #CMD ["php", "-S", "0.0.0.0:7860", "-t", "/var/www/html"]
15
 
 
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
+ CMD ["php", "-S", "0.0.0.0:7860", "-t", "/var/www/html"]
 
 
 
12