This commit is contained in:
11
Dockerfile
11
Dockerfile
@ -1,14 +1,7 @@
|
|||||||
FROM python:3.13-bookworm
|
FROM python:3.13-bookworm
|
||||||
|
|
||||||
ENV POETRY_HOME="/opt/poetry"
|
|
||||||
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
|
|
||||||
ENV PATH="$POETRY_HOME/bin:$PATH"
|
|
||||||
|
|
||||||
COPY ./src /src
|
COPY ./src /src
|
||||||
|
|
||||||
RUN apt update
|
RUN pip install -r requirements.txt
|
||||||
RUN apt install -y pipx
|
|
||||||
RUN pipx install poetry
|
|
||||||
|
|
||||||
CMD [ "poetry", "install" ]
|
CMD [ "python", "/src/main.py" ]
|
||||||
CMD [ "poetry", "run", "python", "/src/main.py" ]
|
|
||||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
aiogram
|
||||||
|
asyncio
|
||||||
Reference in New Issue
Block a user