restructure the project for packaging

This commit is contained in:
2025-03-11 11:32:26 +01:00
parent f3bdb6d53f
commit 1485277d66
16 changed files with 489 additions and 294 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM python:3.12-slim
WORKDIR /app
# Copy only necessary files and directories
COPY src/auracaster_webui/ ./src/auracaster_webui/
COPY src/api_client/ ./src/api_client/
# Install the package
RUN pip install --no-cache-dir .
# Expose Streamlit port
EXPOSE 8501
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Run the Streamlit app
CMD ["auracaster-webui"]