lizenzserver
Dieser Commit ist enthalten in:
@@ -1,18 +1,21 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Zeitzone setzen
|
||||
ENV TZ=Europe/Berlin
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y tzdata \
|
||||
&& ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime \
|
||||
&& echo "Europe/Berlin" > /etc/timezone \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Placeholder für Lizenzserver
|
||||
RUN echo "Lizenzserver noch nicht implementiert" > info.txt
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
postgresql-client \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
CMD ["python", "-c", "print('Lizenzserver Container läuft, aber noch keine Implementierung vorhanden'); import time; time.sleep(86400)"]
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY app app/
|
||||
COPY init_db.py .
|
||||
COPY .env* ./
|
||||
|
||||
ENV PYTHONPATH=/app
|
||||
|
||||
EXPOSE 8443
|
||||
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8443"]
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren