-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (17 loc) · 722 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
24
# set base image (host OS)
FROM python:3.9
# set the working directory in the container
WORKDIR /code
RUN apt-get install -yqq unzip
RUN wget -O /tmp/chromedriver.zip http:https://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip
RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
# copy the dependencies file to the working directory
COPY requirements.txt .
# install dependencies
RUN pip install -r requirements.txt
# copy the content of the local src directory to the working directory
COPY app/ app
ENV PYTHONPATH=/code
ENV INSIDE_DOCKER_CONTAINER=1
# command to run on container start
CMD [ "python", "./app/bot/telegram/main.py"]