Dockerfile for root container
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-01-20 13:24:36 +01:00
parent 3c1702bb6a
commit bd81ac9a5b
2 changed files with 26 additions and 0 deletions

View File

@@ -13,6 +13,18 @@ steps:
from_secret: docker_password from_secret: docker_password
tags: latest tags: latest
auto_tag: true auto_tag: true
- name: dockerroot
image: plugins/docker
settings:
registry: registry.d1v3.de
repo: registry.d1v3.de/dnd-spellcard-builder-root
dockerfile: Dockerfile.root
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: latest
auto_tag: true
--- ---
kind: secret kind: secret
name: docker_username name: docker_username

14
Dockerfile.root Normal file
View File

@@ -0,0 +1,14 @@
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
WORKDIR /home/appuser
COPY ./ ./
ENTRYPOINT ["python", "./genspells.py"]