diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ce83f70 --- /dev/null +++ b/.drone.yml @@ -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 + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..95796f3 --- /dev/null +++ b/Dockerfile @@ -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"] +