Team Ai
Apppublic

voldigo/ai-code-agent

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
Dockerfile29 linesDownload Raw Back to root
1# Use an official Python runtime as a parent image2FROM python:3.9-slim3 4# Set the working directory in the container5WORKDIR /code6 7# Use the modern HF_HOME variable to control all cache locations8ENV HF_HOME="/code/huggingface_cache"9 10# Create the cache directory and give the default user ownership11RUN mkdir -p $HF_HOME && chown -R 1000:1000 $HF_HOME12 13# Copy the requirements file14COPY requirements.txt .15# --- ADD THIS HEALTHCHECK INSTRUCTION ---16# It tells the platform to check the root URL every 30 seconds.17HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl --fail http://localhost:5000/ || exit 118# --------------------------------------19# Install the packages20RUN pip install --no-cache-dir -r requirements.txt21 22# Copy the rest of your application code23COPY . .24 25# Expose the port Flask runs on26EXPOSE 500027 28# Command to run your application29CMD ["python", "app.py"]