Add docker-compose.yml and Dockerfile

This commit is contained in:
Cristian 2020-02-24 12:02:08 +01:00 committed by GitHub
parent 28a1ac1612
commit 41eb5bcd8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM python:3.8-alpine
WORKDIR /uploads
VOLUME /uploads
RUN apk add gcc musl-dev libffi-dev openssl-dev
RUN pip install updog
EXPOSE 9090
CMD ["updog"]

9
docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
version: '3'
services:
updong:
build: .
volumes:
- '/YOUR/PATH:/uploads'
ports:
- 9090:9090
restart: unless-stopped