FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 PORT=8080
WORKDIR /app
COPY hosted-lock.txt ./
RUN pip install --no-cache-dir -r hosted-lock.txt && useradd --create-home --uid 10001 simulator
COPY bridge.py hosted.py ./
USER simulator
EXPOSE 8080
CMD ["python", "hosted.py"]
