forked from zauberzeug/nicegui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.dockerfile
More file actions
37 lines (27 loc) · 912 Bytes
/
release.dockerfile
File metadata and controls
37 lines (27 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM python:3.14-slim
LABEL maintainer="Zauberzeug GmbH <info@zauberzeug.com>"
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
ENV UV_PROJECT_ENVIRONMENT=/opt/venv
ENV PATH="/opt/venv/bin:${PATH}"
WORKDIR /app
# Copy dependency files first for better layer caching
COPY pyproject.toml uv.lock* ./
# Install dependencies including website group
ARG VERSION
ENV POETRY_DYNAMIC_VERSIONING_BYPASS=$VERSION
RUN uv sync --no-install-project --no-dev --all-extras --group website
# Copy application files
COPY main.py README.md ./
COPY examples ./examples
COPY nicegui ./nicegui
COPY website ./website
RUN mkdir /resources
COPY docker-entrypoint.sh /resources
RUN chmod 777 /resources/docker-entrypoint.sh
# Install NiceGUI from source
RUN uv pip install .
EXPOSE 8080
ENV PYTHONUNBUFFERED=True
ENTRYPOINT ["/resources/docker-entrypoint.sh"]
CMD ["/opt/venv/bin/python", "main.py"]