joaomaia commited on
Commit
23663f0
·
1 Parent(s): 4070b98

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,17 +1,17 @@
1
  FROM python:3.9-slim-buster
2
 
3
- WORKDIR /app
4
 
5
  COPY requirements.txt .
6
 
7
  # Install any needed packages specified in requirements.txt
8
  RUN python -m pip install --no-cache-dir --upgrade pip
9
- RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  # Copy the application code
12
  COPY . .
13
 
14
- CMD ["python", "app.py"]
15
 
16
  RUN mkdir /.cache
17
  RUN chmod 777 /.cache
 
1
  FROM python:3.9-slim-buster
2
 
3
+ WORKDIR /code
4
 
5
  COPY requirements.txt .
6
 
7
  # Install any needed packages specified in requirements.txt
8
  RUN python -m pip install --no-cache-dir --upgrade pip
9
+ RUN pip install --no-cache-dir -r /code/requirements.txt
10
 
11
  # Copy the application code
12
  COPY . .
13
 
14
+ CMD ["python", "/code/app.py"]
15
 
16
  RUN mkdir /.cache
17
  RUN chmod 777 /.cache