Dockerfile for root container
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
12
.drone.yml
12
.drone.yml
@@ -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
14
Dockerfile.root
Normal 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"]
|
||||||
Reference in New Issue
Block a user