linkbert-gradio / Dockerfile
dejanseo's picture
Create Dockerfile
469bc56 verified
Raw History Blame
474 Bytes
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
git-lfs \
&& git lfs install \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
GRADIO_SERVER_NAME=0.0.0.0 \
GRADIO_SERVER_PORT=7860
RUN useradd -m -u 1000 user
USER user
EXPOSE 7860
CMD ["python", "app.py"]