Spaces:
Paused
Paused
File size: 506 Bytes
2345f84 716af67 2345f84 716af67 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
FROM shadowv2/int-driver:latest
EXPOSE 8000
# Install Python + venv tools
RUN apt-get update && apt-get install -y python3 python3-venv python3-pip
# Create a virtual environment
RUN python3 -m venv /opt/venv
# Activate venv for all future commands
ENV PATH="/opt/venv/bin:$PATH"
# Install FastAPI inside venv
COPY requirements.txt /requirements.txt
RUN pip install --no-cache-dir -r /requirements.txt
# Copy app
COPY main.py /main.py
# Run FastAPI + shadow driver
ENTRYPOINT ["python3", "/main.py"] |