Spaces:
Sleeping
Sleeping
Jensen-holm
commited on
Commit
·
e735ea1
1
Parent(s):
fd4ce9c
re configuring dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -8,10 +8,10 @@ WORKDIR /app
|
|
8 |
COPY . /app
|
9 |
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
-
RUN
|
12 |
|
13 |
-
#
|
14 |
-
EXPOSE
|
15 |
|
16 |
-
#
|
17 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:
|
|
|
8 |
COPY . /app
|
9 |
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
+
RUN pip install --trusted-host pypi.python.org -r requirements.txt
|
12 |
|
13 |
+
# Expose port 8080 for Render to proxy traffic to
|
14 |
+
EXPOSE 8080
|
15 |
|
16 |
+
# Start the Gunicorn server
|
17 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--workers", "4", "app:app"]
|