mirror of
https://gitlab.com/moepoi/journalscrapper.git
synced 2024-11-24 07:46:34 +01:00
19 lines
435 B
Text
19 lines
435 B
Text
|
FROM python:3.9-slim
|
||
|
|
||
|
# copy the requirements file into the image
|
||
|
COPY ./requirements.txt /app/requirements.txt
|
||
|
|
||
|
# switch working directory
|
||
|
WORKDIR /app
|
||
|
|
||
|
# install the dependencies and packages in the requirements file
|
||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
||
|
# copy every content from the local file to the image
|
||
|
COPY . /app
|
||
|
|
||
|
# configure the container to run in an executed manner
|
||
|
ENTRYPOINT [ "python" ]
|
||
|
|
||
|
CMD ["main.py" ]
|