Drone deploy plugin

This commit is contained in:
cupcakearmy
2019-03-05 19:30:10 +01:00
parent 5a1e91a5e7
commit 85e5c7f061
5 changed files with 190 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM python:3-alpine as builder
RUN apk add --no-cache alpine-sdk libffi-dev openssl-dev python3-dev
COPY requirements.txt .
RUN pip install -r requirements.txt
FROM python:3-alpine
WORKDIR /plugin
COPY --from=builder /root/.cache /root/.cache
COPY --from=builder requirements.txt .
RUN pip install -r requirements.txt && rm -rf /root/.cache
COPY main.py ./
WORKDIR /drone/src
CMD ["python", "/plugin/main.py"]