DeepCRISPR / Dockerfile
mk6783336's picture
Update Dockerfile
ebeb1cd verified
raw
history blame contribute delete
641 Bytes
FROM python:3.12-slim
WORKDIR /app
# 1. Install the 'unzip' tool in the cloud
RUN apt-get update && apt-get install -y unzip
# Create a non-root user
RUN useradd -m -u 1000 user
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all your uploaded files (including the zip)
COPY --chown=user:user . .
# 2. Unzip the AutoGluon folder directly inside the container!
RUN unzip -o DeepCRISPR_Mega_Model_Full.zip
RUN chown -R user:user /app
# Switch to the user
USER user
EXPOSE 7860
# Launch the FastAPI server
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]