Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions pyinstaller/Dockerfile-alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM alpine:3.16

RUN apk add \
curl git ca-certificates alpine-sdk bash \
openssl-dev readline-dev zlib-dev libffi-dev

RUN curl https://pyenv.run | bash

ENV PATH="/root/.pyenv/bin:$PATH"

RUN pyenv install -l | grep 3.8
RUN CONFIGURE_OPTS=--enable-shared pyenv install 3.8.6
RUN pyenv global 3.8.6

RUN /root/.pyenv/versions/3.8.6/bin/python -m venv /yacron
ENV PATH=/yacron/bin:$PATH
COPY pyinstaller/requirements.txt /root
RUN pip install -U pip
RUN pip install -r /root/requirements.txt

COPY . /root/yacron
WORKDIR /root/yacron
RUN git status
RUN python setup.py install
RUN python pyinstaller/yacron --version
RUN pyinstaller pyinstaller/yacron.spec
RUN ls -sFh dist/yacron
RUN dist/yacron --version
9 changes: 9 additions & 0 deletions pyinstaller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ all:
docker kill yacron-pyinstaller-build
ls -sh dist/yacron
dist/yacron --version

all-alpine:
docker build -t yacron-pyinstaller-build -f Dockerfile-alpine ..
docker run --name yacron-pyinstaller-build --rm -d yacron-pyinstaller-build sleep infinity
mkdir -p dist
docker cp yacron-pyinstaller-build:/root/yacron/dist/yacron dist/
docker kill yacron-pyinstaller-build
ls -sh dist/yacron
dist/yacron --version