Merge fff5bc8fd8 into b925f785ed
This commit is contained in:
commit
53c8ae3a64
|
|
@ -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
|
COPY ./* /build/websockify
|
||||||
RUN rm -rf /websockify-* /root/.cache
|
|
||||||
|
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
|
VOLUME /data
|
||||||
|
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -29,7 +29,7 @@ setup(name=name,
|
||||||
author="Joel Martin",
|
author="Joel Martin",
|
||||||
author_email="github@martintribe.org",
|
author_email="github@martintribe.org",
|
||||||
|
|
||||||
packages=['websockify'],
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'numpy', 'requests',
|
'numpy', 'requests',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue