iabualhaol commited on
Commit
b0240e9
1 Parent(s): 2e2b19c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -10
Dockerfile CHANGED
@@ -1,22 +1,17 @@
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
- USER root
8
 
9
  # Set the working directory in the container
10
  WORKDIR /app
11
 
12
- # Copy the current directory contents into the container at /app
13
- COPY . /app
14
 
15
  # Install any needed packages specified in requirements.txt
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Make port 7860 available to the world outside this container
19
- EXPOSE 7860
20
 
21
- # Run app.py when the container launches
22
  CMD ["python", "app.py"]
 
1
  # Use an official Python runtime as a parent image
2
  FROM python:3.8-slim-buster
 
 
 
 
 
3
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
+ # Copy the requirements file into the container at /app
8
+ COPY requirements.txt /app/
9
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Copy the current directory contents into the container at /app
14
+ COPY . /app/
15
 
16
+ # Run the application
17
  CMD ["python", "app.py"]