File size: 401 Bytes
6ab520d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.8.13

# 1. Copy the requirements.txt file to the image
ENV PYTHONPATH=$PYTHONPATH:/src/
COPY ./requirements.txt /src/requirements.txt

WORKDIR /src

# 2. Install the dependencies
RUN pip install --upgrade pip && pip install -r requirements.txt

# 3. Copy the content of the current directory to the image
COPY ./ /src/

# 4. Run the populate_db.py script
CMD ["python", "populate_db.py"]