Spaces:
Sleeping
Sleeping
shiveshnavin
commited on
Create Dockerfile
Browse files- Dockerfile +24 -0
Dockerfile
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the base image with Python 3.8.3 on Ubuntu 20.04
|
2 |
+
FROM brunneis/python:3.8.3-ubuntu-20.04
|
3 |
+
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy the packages.txt and requirements.txt files to the container
|
8 |
+
COPY packages.txt .
|
9 |
+
COPY requirements.txt .
|
10 |
+
|
11 |
+
# Install the system packages listed in packages.txt
|
12 |
+
RUN apt-get update && \
|
13 |
+
xargs -a packages.txt apt-get install -y && \
|
14 |
+
apt-get clean && \
|
15 |
+
rm -rf /var/lib/apt/lists/* && \
|
16 |
+
rm packages.txt
|
17 |
+
|
18 |
+
# Install Python dependencies from requirements.txt
|
19 |
+
RUN pip install -r requirements.txt
|
20 |
+
|
21 |
+
# Add your application files and code here, if necessary
|
22 |
+
|
23 |
+
# Specify the command to run your application
|
24 |
+
CMD ["/bin/bash"]
|