Spaces:
Build error
Build error
Commit
·
a523db6
1
Parent(s):
22e4eee
bnm
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -16,10 +16,10 @@ RUN apt install -y libc6
|
|
16 |
|
17 |
|
18 |
|
19 |
-
RUN adduser --disabled-password --gecos ''
|
20 |
-
RUN adduser
|
21 |
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
22 |
-
COPY --chown=
|
23 |
|
24 |
|
25 |
|
@@ -47,13 +47,13 @@ WORKDIR /app
|
|
47 |
RUN echo ${APACHE_LOG_DIR}
|
48 |
|
49 |
|
50 |
-
#RUN chown
|
51 |
-
RUN chown
|
52 |
RUN chmod 777 /app
|
53 |
|
54 |
RUN sed -i 's/Listen 80/Listen 7860/g' /etc/apache2/ports.conf
|
55 |
RUN service apache2 start
|
56 |
-
USER
|
57 |
|
58 |
RUN ls -la /var/log/apache2/error.log
|
59 |
RUN chmod 777 /var/log/apache2/error.log
|
|
|
16 |
|
17 |
|
18 |
|
19 |
+
RUN adduser --disabled-password --gecos '' admin
|
20 |
+
RUN adduser admin sudo
|
21 |
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
22 |
+
COPY --chown=admin:admin error.log /var/log/apache2/error.log
|
23 |
|
24 |
|
25 |
|
|
|
47 |
RUN echo ${APACHE_LOG_DIR}
|
48 |
|
49 |
|
50 |
+
#RUN chown admin:admin /var/log/apache2/error.log
|
51 |
+
RUN chown admin:admin /app
|
52 |
RUN chmod 777 /app
|
53 |
|
54 |
RUN sed -i 's/Listen 80/Listen 7860/g' /etc/apache2/ports.conf
|
55 |
RUN service apache2 start
|
56 |
+
USER admin
|
57 |
|
58 |
RUN ls -la /var/log/apache2/error.log
|
59 |
RUN chmod 777 /var/log/apache2/error.log
|