All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 4m50s
24 lines
470 B
Docker
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"]
|