Compare commits
4 Commits
3f0f4ab959
...
6755f1ddf9
Author | SHA1 | Date | |
---|---|---|---|
6755f1ddf9 | |||
cf6a303e56 | |||
c6b3bc7662 | |||
cf4047a298 |
12
Dockerfile
Normal file
12
Dockerfile
Normal 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
10
docker-compose.yml
Normal 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
7
start.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user