Spaces:
Sleeping
Sleeping
# Use a base image with Python | |
FROM python:3.10-slim | |
# Install FreeCAD and other dependencies | |
RUN apt-get update && apt-get install -y \ | |
freecad-python3 \ | |
libgl1-mesa-glx \ | |
libglu1-mesa \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Set the working directory | |
WORKDIR /app | |
# Copy the project files | |
COPY requirements.txt . | |
COPY app.py . | |
COPY . . | |
# Install Python dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Expose the port Streamlit runs on | |
EXPOSE 7860 | |
# Command to run the Streamlit app | |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |