Add dockerfile and CI to build it
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kleph 2021-04-12 22:57:39 +02:00
parent f0da90a81b
commit 7202f9d535
2 changed files with 30 additions and 0 deletions

21
.drone.yml Normal file
View file

@ -0,0 +1,21 @@
---
kind: pipeline
name: build
steps:
- name: build image
image: plugins/docker
settings:
repo: kleph/pytubedl
tags:
- ${DRONE_COMMIT_SHA:0:8}
- latest
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
when:
event:
exclude:
- pull_request

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM python:slim
RUN pip install flask
COPY /pytubedl/pytubedl.py /pytubedl.py
COPY /pytubedl/templates /templates
EXPOSE 5000
CMD ["python", "pytubedl.py"]