2022-10-05 12:55:54 -04:00
|
|
|
FROM python:3-slim
|
|
|
|
|
|
|
|
|
|
LABEL org.opencontainers.image.description='Unwebsockify is a TCP to WebSocket proxy/bridge -- like a reverse websockify.' \
|
|
|
|
|
org.opencontainers.image.source='https://github.com/jimparis/unwebsockify' \
|
|
|
|
|
org.opencontainers.image.licenses='MIT'
|
|
|
|
|
|
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
|
|
|
PYTHONFAULTHANDLER=1 \
|
|
|
|
|
PYTHONHASHSEED=random \
|
|
|
|
|
PYTHONUNBUFFERED=1
|
|
|
|
|
|
2020-06-30 13:03:36 -04:00
|
|
|
WORKDIR /usr/src/app
|
2022-10-05 12:55:54 -04:00
|
|
|
|
|
|
|
|
COPY requirements.txt .
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
COPY unwebsockify.py .
|
|
|
|
|
ENTRYPOINT [ "python", "./unwebsockify.py" ]
|