Spaces:
Build error
Build error
Commit
·
2bd0c6c
1
Parent(s):
788e944
enrypoint
Browse files- Dockerfile +4 -3
- entrypoint.sh +5 -0
Dockerfile
CHANGED
@@ -5,7 +5,8 @@ RUN apt -y install apache2
|
|
5 |
|
6 |
EXPOSE 7860
|
7 |
RUN ps aux | grep apache2
|
8 |
-
|
9 |
-
|
10 |
|
11 |
-
CMD ["apache2ctl", "-DFOREGROUND"]
|
|
|
|
5 |
|
6 |
EXPOSE 7860
|
7 |
RUN ps aux | grep apache2
|
8 |
+
USER root
|
9 |
+
whoami
|
10 |
|
11 |
+
CMD ["apache2ctl", "-DFOREGROUND"]
|
12 |
+
ENTRYPOINT ["entrypoint.sh"]
|
entrypoint.sh
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
pwd
|
3 |
+
cd
|
4 |
+
pwd
|
5 |
+
echo "fin"
|