Spaces:
Sleeping
Sleeping
File size: 656 Bytes
e9b4639 c1ea9a8 e9b4639 c1ea9a8 90ca923 e9b4639 c1ea9a8 90ca923 e9b4639 c202512 e9b4639 da94eda e9b4639 72e2831 e9b4639 c202512 da94eda e9b4639 |
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 |
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory in the container to /app
WORKDIR /app
# Install git and other dependencies
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Clone the repository
RUN git clone https://github.com/KenKout/CO3001.git /app
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
RUN chmod 777 /app
COPY studyspace.db .
RUN chmod 777 studyspace.db
# Expose the port that Uvicorn will run on
EXPOSE 8000
# Run Uvicorn when the container launches
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|