tera / Dockerfile
sanch1tx's picture
Update Dockerfile
7c77477 verified
raw
history blame contribute delete
485 Bytes
# UPDATE: Changed from v1.40.0 to v1.57.0 to match the latest library version
FROM mcr.microsoft.com/playwright/python:v1.57.0-jammy
# Create a new user (UID 1001) to avoid conflict with existing 'pwuser'
RUN useradd -m -u 1001 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]