CoolFace
Apppublic

abdullahawan1/dictionary-attack-detector

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
Dockerfile27 linesDownload Raw Back to root
1FROM python:3.10-slim2 3WORKDIR /app4 5COPY requirements.txt .6RUN pip install --no-cache-dir -r requirements.txt7 8# Set up a new user named "user" with user ID 10009RUN useradd -m -u 1000 user10 11# Switch to the "user" user12USER user13 14# Set home to the user's home directory15ENV HOME=/home/user \16    PATH=/home/user/.local/bin:$PATH17 18# Set the working directory to the user's home directory19WORKDIR $HOME/app20 21# Copy the current directory contents into the container at $HOME/app setting the owner to the user22COPY --chown=user . $HOME/app23 24ENV PORT=786025 26CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]27