Files
max-messages-forwarder/Dockerfile
n08i40k c12beb95e2
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 4m50s
feat: initial commit
2025-11-01 03:10:21 +04:00

24 lines
470 B
Docker

# syntax=docker/dockerfile:1
FROM python:3.11-slim AS runtime
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
VIRTUAL_ENV=/opt/venv
RUN python -m venv "$VIRTUAL_ENV"
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
COPY bridge.py ./
COPY bridge_app ./bridge_app
VOLUME ["/app/max_session"]
ENTRYPOINT ["python", "bridge.py"]