mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-25 18:04:10 +00:00
19 lines
825 B
Docker
19 lines
825 B
Docker
|
FROM python:3.10.8-slim-bullseye
|
||
|
COPY . /app
|
||
|
WORKDIR /app
|
||
|
RUN pip install virtualenv==20.16.6 poetry==1.2.2 \
|
||
|
&& python3 -m virtualenv venv/ \
|
||
|
&& . venv/bin/activate \
|
||
|
&& poetry install \
|
||
|
&& playwright install chromium \
|
||
|
&& playwright install-deps \
|
||
|
&& apt install -y git \
|
||
|
&& git init . \
|
||
|
&& git add -A \
|
||
|
&& git -c user.name='user' \
|
||
|
-c user.email='user@example.com' \
|
||
|
commit -m 'Docker deployment' \
|
||
|
&& mkdir cache/ \
|
||
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
ENTRYPOINT ["venv/bin/python", "./run.py"]
|