File size: 695 Bytes
fcf88e7 0f7321f cdecd96 7ae8343 31ac242 7ae8343 fcf88e7 cdecd96 20d6efa 7e9befa 20d6efa cdecd96 d3d2b56 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
FROM python:3.12-slim
WORKDIR /app
COPY . /app
# Ensure /app is writable for session files
RUN chmod -R 777 /app
# Install build tools and dependencies
RUN apt-get update && \
apt-get install -y gcc && \
pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir pyflakes &&\
apt-get remove -y gcc && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install uvicorn fastapi
# Ensure writable directories
RUN mkdir -p /app/modules && chmod 777 /app/modules
RUN mkdir -p /app/sessions && chmod 777 /app/sessions
# Start the FastAPI app
CMD python3 jarvis.py & python3 server.py
|