This commit is contained in:
11
Dockerfile
11
Dockerfile
@ -1,14 +1,7 @@
|
||||
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
|
||||
|
||||
RUN apt update
|
||||
RUN apt install -y pipx
|
||||
RUN pipx install poetry
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
CMD [ "poetry", "install" ]
|
||||
CMD [ "poetry", "run", "python", "/src/main.py" ]
|
||||
CMD [ "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