Spaces:
Running
Running
Bouaziz-bad
commited on
Commit
·
51fa8cd
1
Parent(s):
6810fc4
Amend Dockerfile for small test
Browse files- 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 |
-
#
|
30 |
-
|
|
|
|
|
|
|
|
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"]
|