-
Notifications
You must be signed in to change notification settings - Fork 75
/
Dockerfile
27 lines (19 loc) · 710 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
25
26
27
FROM mcr.microsoft.com/playwright/python:v1.30.0-jammy
WORKDIR /app
RUN apt-get update -y -q
# installing chrome binary and additional fonts
RUN apt-get install -y fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
# do not ask any interactive question
POETRY_NO_INTERACTION=1
RUN pip install poetry
# copy the source into the virtual space
COPY . /app/
# install dependencies
RUN poetry config virtualenvs.create false && poetry install --no-dev --no-ansi
# run the program
CMD ["python", "."]