mirror of
https://github.com/tanrax/RSSingle.git
synced 2024-11-21 23:25:41 +01:00
19 lines
320 B
Docker
19 lines
320 B
Docker
|
FROM docker.io/python:3.8-buster AS base
|
||
|
|
||
|
FROM base AS build
|
||
|
|
||
|
WORKDIR /work
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN pip3 install pyinstaller
|
||
|
|
||
|
RUN pip3 install -r /work/requirements.txt
|
||
|
RUN pyinstaller --onefile /work/rssingle.py
|
||
|
|
||
|
FROM docker.io/python:3.8-buster AS app
|
||
|
|
||
|
COPY --from=build /work/dist/rssingle /rssingle
|
||
|
|
||
|
ENTRYPOINT ["/rssingle"]
|