alwaysdungeons/.drone.yml
askiiart f82aa8b4bb
Reduce Docker image size 80% via pyinstaller (#1)
* FROM scratch - initial commit

* Switch to debian + ADD middle-ground
2023-09-06 14:59:21 -05:00

23 lines
643 B
YAML

kind: pipeline
name: default
steps:
- name: Make semi-static build with pyinstaller (NOT actually static)
image: python:latest
commands:
- apt-get update
- apt-get install binutils -y
- pip install pyinstaller
- cd /drone/src && pip install -r requirements.txt && pyinstaller main.py
- chmod 777 /repo/dist/main/main
- cd /drone/src/dist/main && tar cvfz /drone/src/AlwaysDungeons.tar.gz *
- name: build and publish
image: plugins/docker
pull: always
settings:
repo: askiiart/discord-always-dungeons
tags: latest
username:
from_secret: docker_username
password:
from_secret: docker_password