17 lines
402 B
Docker
17 lines
402 B
Docker
FROM python:3.9.6-slim-buster
|
|
|
|
RUN pip install poetry==1.5.1
|
|
|
|
ENV PATH="${PATH}:/home/lenochka/.poetry/bin:/home/lenochka/.local/bin"
|
|
|
|
# Installing requirements
|
|
RUN poetry config virtualenvs.create false
|
|
COPY pyproject.toml poetry.lock /home/lenochka/app/
|
|
WORKDIR /home/lenochka/app/
|
|
RUN poetry install --only main
|
|
|
|
COPY . /home/lenochka/app/src/
|
|
RUN poetry install --only main
|
|
|
|
CMD "lenochka_wake_up"
|