Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -3,7 +3,7 @@ FROM python:3.9-slim-buster
|
|
3 |
|
4 |
|
5 |
# Copy code to container
|
6 |
-
COPY
|
7 |
|
8 |
# RUN apt-get update
|
9 |
RUN apt-get update && apt-get install -y build-essential wget python3-dev python3-pip gcc
|
@@ -25,12 +25,12 @@ WORKDIR /app
|
|
25 |
# Install python depencies
|
26 |
RUN pip3 install --upgrade pip && pip3 install --no-cache-dir -q -r requirements.txt
|
27 |
|
28 |
-
# Expose is
|
29 |
-
|
30 |
|
31 |
-
# Run the image as a non-root user
|
32 |
-
RUN adduser myuser
|
33 |
-
USER myuser
|
34 |
|
35 |
-
# Run the app
|
36 |
CMD gunicorn --bind 0.0.0.0:5000 app:app
|
|
|
3 |
|
4 |
|
5 |
# Copy code to container
|
6 |
+
COPY app /app
|
7 |
|
8 |
# RUN apt-get update
|
9 |
RUN apt-get update && apt-get install -y build-essential wget python3-dev python3-pip gcc
|
|
|
25 |
# Install python depencies
|
26 |
RUN pip3 install --upgrade pip && pip3 install --no-cache-dir -q -r requirements.txt
|
27 |
|
28 |
+
# Expose is port
|
29 |
+
EXPOSE 5000
|
30 |
|
31 |
+
# # Run the image as a non-root user
|
32 |
+
# RUN adduser myuser
|
33 |
+
# USER myuser
|
34 |
|
35 |
+
# Run the app on port 5000
|
36 |
CMD gunicorn --bind 0.0.0.0:5000 app:app
|