-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (23 loc) · 949 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10.6-slim
RUN apt-get update
# installing system dependencies for building and installing libraries (GCC for example)
RUN apt-get install -y build-essential
# setting PYTHONUNBUFFERED to a value different from 0 ensures that the python output i.e. the stdout and stderr streams are sent straight to terminal (e.g. your container log)
ENV PYTHONUNBUFFERED=1
# setting Lang env var For standard language support
ENV LANG C.UTF-8
# Symbolic links to pip and python for ease of use in the cli
RUN ln -sf /usr/bin/pip3 /usr/bin/pip
RUN ln -sf /usr/bin/python3 /usr/bin/python
# upgrading package manager
RUN pip install --upgrade pip
# RUN pip install --upgrade setuptools
# setting the working directory to the project folder
WORKDIR /
COPY requirements.txt ./
# Installing project dependencies
RUN pip install -r requirements.txt
RUN playwright install chromium
RUN playwright install-deps chromium
COPY . ./
CMD [ "python","main.py" ]