CoolFace
Apppublic

TheNacken/python-cors-proxy

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes
Dockerfile24 linesDownload Raw Back to root
1FROM python:3.13.3-slim2 3# Set up a new user named "user" with user ID 10004RUN useradd -m -u 1000 user5 6# Add local bin to PATH to ensure uvicorn is accessible7ENV PATH="/home/user/.local/bin:$PATH"8 9# Switch to the "user" user10USER user11 12# Set the working directory13WORKDIR /app14 15COPY --chown=user ./requirements.txt /app/requirements.txt16 17# Ensure pip installs packages to the global environment18RUN pip install --no-cache-dir --upgrade pip && \19    pip install --no-cache-dir -r requirements.txt20 21COPY --chown=user . /app22 23EXPOSE 800024CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]