MiGenieHASS/dockerfile

13 lines
265 B
Plaintext
Raw Permalink Normal View History

2022-12-15 12:13:09 +00:00
FROM python:3.8-slim
RUN mkdir /app
COPY /app /app
COPY pyproject.toml /app
WORKDIR /app
ENV PYTHONPATH=${PYTHONPATH}:${PWD}
RUN pip3 install poetry
RUN poetry config virtualenvs.create false
2022-12-15 14:51:58 +00:00
RUN poetry install --only main --no-root
2022-12-15 12:13:09 +00:00
CMD [ "python", "main.py"]