CoolFace
Apppublic

librarian-bots/dataset-language-detection-api

sourceHugging Facemitupdated 2y agoView on Hugging Face
4likes
Dockerfile23 linesDownload Raw Back to root
1FROM python:3.112# Set up a new user named "user" with user ID 10003RUN useradd -m -u 1000 user4 5# Switch to the "user" user6USER user7 8# Set home to the user's home directory9ENV HOME=/home/user \10	PATH=/home/user/.local/bin:$PATH11 12# Set the working directory to the user's home directory13WORKDIR $HOME/code14WORKDIR /code15 16COPY ./requirements.txt /code/requirements.txt17 18RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt19 20COPY . .21 22CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--log-config=log_conf.yaml"]23