-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (37 loc) · 1.08 KB
/
Copy pathDockerfile
File metadata and controls
46 lines (37 loc) · 1.08 KB
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
38
39
40
41
42
43
44
45
46
FROM python:3.12-slim-bookworm
WORKDIR /app
# Build-Tools für ARM installieren + curl für healthcheck
RUN apt-get update && apt-get install -y \
gcc \
g++ \
make \
python3-dev \
libffi-dev \
libssl-dev \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files explicitly
COPY app/ /app/app/
COPY utils/ /app/utils/
COPY services/ /app/services/
COPY alembic/ /app/alembic/
COPY alembic.ini /app/
COPY entrypoint.sh /app/
COPY run.py /app/
COPY config.yaml /app/
COPY frontend/ /app/frontend/
COPY .env /app/.env
COPY VERSION /app/
EXPOSE 8085
ENV FILAMENTHUB_DB_PATH=/app/data/filamenthub.db
ENV PYTHONPATH=/app
# Standard-Versionsbezeichnungen (überschreibbar via docker-compose.yml)
ENV APP_VERSION="Stable v1.6.5 · FilamentHub"
ENV DESIGN_VERSION="Design 1.0"
RUN mkdir -p /app/data /app/logs /app/app/logging && \
sed -i 's/\r$//' /app/entrypoint.sh && \
chmod +x /app/entrypoint.sh && \
python -m compileall /app/app -q || true
ENTRYPOINT ["./entrypoint.sh"]