pvanand commited on
Commit
70d82ab
·
verified ·
1 Parent(s): 77a7ebf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -8
Dockerfile CHANGED
@@ -1,14 +1,14 @@
1
- # Use an official Python runtime as a parent image
2
  FROM python:3.10.9
3
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
- RUN git clone https://github.com/pvanand07/fastapi-web-server-with-auth.git
8
- RUN ls
9
- # Copy the current directory contents into the container at /app
10
- COPY fastapi-web-server-with-auth /app
11
  RUN ls
 
12
  # Set environment variable for Matplotlib to use a writable directory
13
  ENV MPLCONFIGDIR=/app/matplotlib
14
 
@@ -27,9 +27,6 @@ RUN mkdir -p /app/output && chmod -R 2777 /app/output
27
  # Install any needed packages specified in requirements.txt
28
  RUN pip install --no-cache-dir -r requirements.txt
29
 
30
- # Run the script to download NLTK data
31
- # RUN python /app/download_nltk_data.py
32
-
33
  # Create a non-root user
34
  RUN useradd -m myuser
35
 
 
 
1
  FROM python:3.10.9
2
 
3
  # Set the working directory in the container
4
  WORKDIR /app
5
 
6
+ # Clone the repository directly into the /app directory
7
+ RUN git clone https://github.com/pvanand07/fastapi-web-server-with-auth.git .
8
+
9
+ # Run ls to check the contents (for debugging)
10
  RUN ls
11
+
12
  # Set environment variable for Matplotlib to use a writable directory
13
  ENV MPLCONFIGDIR=/app/matplotlib
14
 
 
27
  # Install any needed packages specified in requirements.txt
28
  RUN pip install --no-cache-dir -r requirements.txt
29
 
 
 
 
30
  # Create a non-root user
31
  RUN useradd -m myuser
32