barker/docker/app/frank.Dockerfile
Amritanshu 93b1b8840d Feature: Updated the frank dockerfile to properly install python poetry
Feature: Updated the frank playbook to allow user to be changed from pi
Chore: Refactored the various env files to use single file and multiple var files.
2023-08-28 11:03:00 +05:30

25 lines
782 B
Docker

FROM python:latest
# Install Poetry
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python - && \
cd /usr/local/bin && \
ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false && \
mkdir /app
WORKDIR /app
ADD https://git.tanshu.com/tanshu/barker/raw/branch/main/frank/pyproject.toml /app/pyproject.toml
RUN poetry install --no-root --no-dev
ADD https://git.tanshu.com/api/v1/repos/tanshu/barker/tags /tags.json
RUN git clone --single-branch --depth 1 https://git.tanshu.com/tanshu/barker.git /repo
RUN mv /repo/frank/* /app
ENV PYTHONPATH=/app
RUN chmod 777 /app/worker-start.sh \
&& ln -s /app/worker-start.sh /usr/local/bin/worker-start.sh \
&& ln -s /app/worker-start.sh /
CMD ["bash", "worker-start.sh"]