mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-05 12:54:57 +00:00
18 lines
387 B
Docker
18 lines
387 B
Docker
FROM python:3.9
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN apt-get update && apt-get install -y libgl1
|
|
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
EXPOSE 5000
|
|
|
|
CMD ["python", "web/app.py"]
|
|
|
|
#build instruction: sudo docker buildx build -t flaskapp:latest .
|
|
#run instruction: sudo docker run --network="host" --restart=always flaskapp:latest
|
|
# need to use network host to connect to the host's mqtt server |