Spaces:
Runtime error
Runtime error
iabualhaol
commited on
Commit
•
946259b
1
Parent(s):
106b861
Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.8-slim-buster
|
3 |
+
LABEL Maintainer Ibrahim Abualhaol
|
4 |
+
RUN apt-get update && \
|
5 |
+
apt-get install -y \
|
6 |
+
build-essential
|
7 |
+
|
8 |
+
# Set the working directory in the container
|
9 |
+
WORKDIR /app
|
10 |
+
|
11 |
+
# Copy the current directory contents into the container at /app
|
12 |
+
COPY . /app
|
13 |
+
|
14 |
+
# Install any needed packages specified in requirements.txt
|
15 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
+
|
17 |
+
# Make port 7860 available to the world outside this container
|
18 |
+
EXPOSE 7860
|
19 |
+
|
20 |
+
# Run app.py when the container launches
|
21 |
+
CMD ["python", "app.py"]
|