Dockerized app

feature/dockerize
mandlm 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
refresh = 5
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