Update Dockerfile
Browse files- Dockerfile +1 -0
Dockerfile
CHANGED
@@ -9,6 +9,7 @@ FROM alpine:latest
|
|
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 |
|
|
|
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 |
|