Initial Commit
This commit is contained in:
+28
@@ -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"]
|
||||
Reference in New Issue
Block a user