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
34 lines (25 loc) · 843 Bytes
/
release.dockerfile
File metadata and controls
34 lines (25 loc) · 843 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
FROM python:3.12-slim
LABEL maintainer="Zauberzeug GmbH <info@zauberzeug.com>"
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
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 ["uv", "run", "--no-sync", "main.py"]