Dockerized app

This commit is contained in:
Michael Mandl 2019-12-30 15:59:58 +01:00
parent 10d491fa96
commit 9ee36727ef
10 changed files with 23 additions and 1 deletions

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM python:3
ADD app /app
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --requirement /app/requirements.txt
WORKDIR /app
EXPOSE 5000/TCP
CMD [ "python3", "server.py" ]

View file

@ -1,4 +1,4 @@
imgdir = "." imgdir = "/images"
recursive = True recursive = True
refresh = 5 refresh = 5
cachedir = "auto" cachedir = "auto"

View file

Before

Width:  |  Height:  |  Size: 43 B

After

Width:  |  Height:  |  Size: 43 B

View file

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 673 B

13
docker-compose.yml Normal file
View file

@ -0,0 +1,13 @@
version: "2"
services:
webslider:
container_name: webslider
build:
context: .
ports:
- 5005:5000
volumes:
- ./images:/images
restart: always