This commit is contained in:
Checker8763 2025-07-01 21:52:39 +02:00 committed by GitHub
commit 53c8ae3a64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 5 deletions

View File

@ -1,9 +1,17 @@
FROM python
FROM python:3-slim AS builder
COPY websockify-*.tar.gz /
WORKDIR /build/websockify
RUN python3 -m pip install websockify-*.tar.gz
RUN rm -rf /websockify-* /root/.cache
COPY ./* /build/websockify
RUN pip3 install setuptools && \
python3 setup.py sdist --dist-dir docker/
# Actual final image
FROM python:3-slim
COPY --from=builder /build/websockify/websockify-*.tar.gz /
RUN python3 -m pip install websockify-*.tar.gz && \
rm -rf /websockify-* /root/.cache
VOLUME /data

View File

@ -29,7 +29,7 @@ setup(name=name,
author="Joel Martin",
author_email="github@martintribe.org",
packages=['websockify'],
packages=find_packages(),
include_package_data=True,
install_requires=[
'numpy', 'requests',