Added docker container file
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-01-20 10:31:11 +01:00
parent f81875cccc
commit c0c719f728
2 changed files with 46 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM python:3.8-alpine as base
FROM base as builder
RUN mkdir /install
WORKDIR /install
COPY requirements.txt /requirements.txt
RUN pip install --install-option="--prefix=/install" -r /requirements.txt
FROM base
COPY --from=builder /install /usr/local
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
WORKDIR /home/appuser
USER appuser
COPY ./
ENTRYPOINT ["python", "./genspells.py"]