From e20d6fe214aa1936e877c1b3b9c941b6d78e80f1 Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 22 Sep 2025 15:40:38 -0500 Subject: [PATCH] Update Dockerfile --- Dockerfile | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index dca5fa2..f972e94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,29 @@ -FROM python:3.13-alpine +ARG PYTHON_VERSION=3.13 +FROM python:${PYTHON_VERSION}-alpine -# Install build dependencies for cryptography -RUN apk add --no-cache gcc musl-dev libffi-dev openssl-dev +LABEL org.opencontainers.image.source="https://github.com/Sudo-Ivan/Ren-Browser" +LABEL org.opencontainers.image.description="A browser for the Reticulum Network." +LABEL org.opencontainers.image.licenses="MIT" +LABEL org.opencontainers.image.authors="Sudo-Ivan" -# Upgrade pip and install application dependencies -RUN pip install --upgrade pip \ - && pip install --no-cache-dir "flet>=0.28.3,<0.29.0" "rns>=0.9.6,<0.10.0" - -# Copy application source WORKDIR /app -COPY . /app -# Expose the web port +RUN apk add --no-cache gcc python3-dev musl-dev linux-headers libffi-dev openssl-dev + +RUN pip install --no-cache poetry +ENV POETRY_VIRTUALENVS_IN_PROJECT=true + +COPY pyproject.toml poetry.lock* ./ +COPY README.md ./ +COPY ren_browser ./ren_browser + +RUN poetry install --no-interaction --no-ansi --no-cache + +ENV PATH="/app/.venv/bin:$PATH" +ENV FLET_WEB_PORT=8550 +ENV FLET_WEB_HOST=0.0.0.0 +ENV DISPLAY=:99 + EXPOSE 8550 -# Run the web version of Ren Browser -CMD ["python3", "-u", "-m", "ren_browser.app", "--web", "--port", "8550"] \ No newline at end of file +ENTRYPOINT ["poetry", "run", "ren-browser-web"] \ No newline at end of file