Compare commits
3 commits
master
...
feature/do
Author | SHA1 | Date | |
---|---|---|---|
9ee36727ef | |||
10d491fa96 | |||
18abbd32f8 |
10 changed files with 23 additions and 1 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal 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" ]
|
|
@ -1,4 +1,4 @@
|
|||
imgdir = "."
|
||||
imgdir = "/images"
|
||||
recursive = True
|
||||
refresh = 5
|
||||
cachedir = "auto"
|
Before Width: | Height: | Size: 43 B After Width: | Height: | Size: 43 B |
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 673 B |
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
version: "2"
|
||||
|
||||
services:
|
||||
webslider:
|
||||
container_name: webslider
|
||||
build:
|
||||
context: .
|
||||
ports:
|
||||
- 5005:5000
|
||||
volumes:
|
||||
- ./images:/images
|
||||
restart: always
|
||||
|
Loading…
Reference in a new issue