File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1- ARG PYTHON="python:3.9-alpine3.17 "
1+ ARG PYTHON="python:3.9-alpine3.18 "
22
3- FROM ${PYTHON} as build
3+ FROM ${PYTHON} AS builder
44ENV SYNCPLAY="1.7.0"
55RUN apk add gcc musl-dev libffi-dev
6- RUN if [ " $(getconf LONG_BIT)" == "32" ]; then apk add cargo openssl-dev; fi
6+ RUN sh -c '[ $(getconf LONG_BIT) -eq 64 ] || apk add cargo openssl-dev'
77RUN wget https://github.com/Syncplay/syncplay/archive/v${SYNCPLAY}.tar.gz -O- | tar xz
88WORKDIR ./syncplay-${SYNCPLAY}/
99RUN cat /dev/null > requirements_gui.txt
1010RUN SNAPCRAFT_PART_BUILD=1 pip wheel --wheel-dir /wheels/ ./
11+
12+ FROM ${PYTHON} AS syncplay
13+ COPY --from=builder /wheels/ /wheels/
1114WORKDIR /release/local/lib/
1215RUN mkdir $(basename /usr/local/lib/python3.*/) && cd ./python3.*/ && \
1316 ls /wheels/*.whl | xargs -P0 -n1 unzip -d ./site-packages/
1417COPY ./boot.py /release/bin/syncplay
1518
1619FROM ${PYTHON}
1720RUN apk add --no-cache libffi openssl
18- COPY --from=build /release/ /usr/
21+ COPY --from=syncplay /release/ /usr/
1922ENV PYTHONUNBUFFERED=1
2023EXPOSE 8999
24+ WORKDIR /data/
2125ENTRYPOINT ["syncplay" ]
You can’t perform that action at this time.
0 commit comments