Newer
Older
CNCTools / ReferenceSurfaceGenerator / backend / Dockerfile
@yangyang xie yangyang xie 25 days ago 448 bytes init commit
# Set the base image to Python
FROM python:3.11-slim

# Set the working directory
WORKDIR /app

# Copy and install the requirements
COPY ./requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the application code
COPY ./app /app/app

# Expose the port the app runs on
EXPOSE 8000

# Run the application as a module to avoid PATH issues
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]