ariansyahdedy commited on
Commit
4f087de
·
1 Parent(s): 8d66f03

Change port

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -0
  2. start.sh +7 -0
Dockerfile CHANGED
@@ -33,5 +33,10 @@ EXPOSE 8000
33
  # Define environment variable
34
  ENV PYTHONUNBUFFERED=1
35
 
 
 
 
36
  # Run Hypercorn when the container launches
37
  CMD ["hypercorn", "app.main:app", "--bind", "0.0.0.0:$PORT"]
 
 
 
33
  # Define environment variable
34
  ENV PYTHONUNBUFFERED=1
35
 
36
+ # Print the PORT environment variable to ensure it's set
37
+ RUN echo $PORT
38
+
39
  # Run Hypercorn when the container launches
40
  CMD ["hypercorn", "app.main:app", "--bind", "0.0.0.0:$PORT"]
41
+
42
+
start.sh ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Print all environment variables
4
+ env
5
+
6
+ # Start Hypercorn
7
+ hypercorn app.main:app --bind 0.0.0.0:$PORT