Bouaziz-bad commited on
Commit
51fa8cd
·
1 Parent(s): 6810fc4

Amend Dockerfile for small test

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  # Use a newer slim Python image
2
  FROM docker.io/library/python:3.11-slim
3
 
 
 
 
4
  # Install system dependencies, including build tools and ffmpeg
5
  RUN apt-get update && apt-get install -y sox ffmpeg build-essential
6
 
@@ -26,5 +29,8 @@ COPY --chown=appuser:appuser . .
26
  # Expose the port the app runs on
27
  EXPOSE 8000
28
 
29
- # Run the application as the non-root user
30
- CMD ["gunicorn", "--bind", "0.0.0.0:8000", "app:app"]
 
 
 
 
1
  # Use a newer slim Python image
2
  FROM docker.io/library/python:3.11-slim
3
 
4
+ # Use a newer slim Python image
5
+ FROM docker.io/library/python:3.11-slim
6
+
7
  # Install system dependencies, including build tools and ffmpeg
8
  RUN apt-get update && apt-get install -y sox ffmpeg build-essential
9
 
 
29
  # Expose the port the app runs on
30
  EXPOSE 8000
31
 
32
+ # Set the entrypoint for the container
33
+ ENTRYPOINT ["gunicorn"]
34
+
35
+ # Set the arguments for the entrypoint (this is your CMD)
36
+ CMD ["--bind", "0.0.0.0:8000", "app:app"]