shiveshnavin commited on
Commit
e78c388
·
1 Parent(s): fc8040d

Update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -1,24 +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"]
 
 
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
+
5
  WORKDIR /app
6
 
 
 
 
7
 
8
+ COPY . .
9
+ COPY . .
10
+
11
+
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
+
19
  RUN pip install -r requirements.txt
20
 
 
21
 
22
+ EXPOSE 7860
23
+
24
+ CMD ["python","app.py"]