-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.release
More file actions
24 lines (18 loc) · 867 Bytes
/
Copy pathDockerfile.release
File metadata and controls
24 lines (18 loc) · 867 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
# Build the distributable dashboard image from the source checked out by CI,
# Docker's Git build context, or a developer's local repository.
FROM python:3.11-slim
# Keep the installed application and its build input in one predictable location.
WORKDIR /app
# Stream logs immediately and avoid retaining pip's download cache in the image.
ENV PYTHONUNBUFFERED=1
ENV PIP_NO_CACHE_DIR=1
# Copy only the independently installable dashboard package into the image.
COPY packages/stingray-dashboard/ /app/
RUN chmod +x /app/docker-entrypoint.sh
# Install the dashboard and the optional Gunicorn production server dependency.
RUN pip install --upgrade pip && \
pip install --no-cache-dir ".[server]"
# Document the dashboard's internal HTTP port.
EXPOSE 8050
# Print the user-facing URL, then run the packaged WSGI application.
CMD ["/app/docker-entrypoint.sh"]