chartManD commited on
Commit
ee71a14
·
1 Parent(s): 27e97fb

Se agrega un archivho entrypoint

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -8
  2. entrypoint.sh +9 -0
Dockerfile CHANGED
@@ -1,13 +1,6 @@
1
  FROM debian:12.6
2
- RUN apt update -y
3
- RUN apt upgrade -y
4
- RUN apt -y install apache2
5
- RUN apt -y install php
6
-
7
- RUN rm -rf /var/lib/apt/lists/*
8
-
9
  COPY ./app ./app
10
  EXPOSE 7860
11
  EXPOSE 22
12
  WORKDIR app
13
- CMD ["php", "-S", "0.0.0.0:7860"]
 
1
  FROM debian:12.6
 
 
 
 
 
 
 
2
  COPY ./app ./app
3
  EXPOSE 7860
4
  EXPOSE 22
5
  WORKDIR app
6
+ CMD ["./entrypoint.sh"]
entrypoint.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/sh
2
+ apt update -y
3
+ apt upgrade -y
4
+ apt -y install apache2
5
+ apt -y install php
6
+
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ php -S 0.0.0.0:7860