Initial Commit

This commit is contained in:
linkup11
2023-12-01 13:34:27 +01:00
commit b35b0e54be
7830 changed files with 1619698 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# Python Basisimage
FROM python:3.9-alpine
# Arbeitsverzeichnis
WORKDIR /app
# Kopieren des Projekts
COPY manage.py /app/manage.py
COPY Webgame /app/Webgame
COPY mygame /app/mygame
# Abhängigkeiten installieren
RUN pip install -r /app/Webgame/requirements.txt
# Umgebungsvariable setzen
ENV DJANGO_SETTINGS_MODULE=Webgame.settings
# Static files in das Image
RUN python manage.py collectstatic --noinput
# Datenbank
RUN python manage.py migrate
# Port freigeben
EXPOSE 8000
# Anwendung starten mit Daphne
CMD ["daphne", "Webgame.asgi:application", "--bind", "0.0.0.0", "--port", "8000"]