Compare commits

...

4 Commits

3 changed files with 29 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM python:3
WORKDIR /usr/src/app
COPY game_collection/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY game_collection .
EXPOSE 3004
CMD [ "flask", "run", "--host=0.0.0.0", "--port=3004" ]

10
docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: '3.8'
services:
app:
build: .
ports:
- "3004:3004"
volumes:
- /home/manuel/docker/MikaApp/instance:/usr/src/app/instance
command: ["./start.sh"]

7
start.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
# Pull the latest changes from the repository
git pull https://gitlab.fire-devils.org/ManuelW/MikaList.git
# Start the Flask application
flask run --host=0.0.0.0 --port=3004