Project-Polymath / Dockerfile
Addyk24's picture
Added basic configs for env needed with dockerfile for deployment on space
675c21c
raw
history blame contribute delete
375 Bytes
FROM public.ecr.aws/docker/library/python:3.11-slim
RUN useradd -m -u 1000 user
WORKDIR /app
COPY --chown=user:user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user:user . .
USER user
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONPATH=/app \
HOME=/home/user
EXPOSE 7860
CMD ["python", "server/app.py"]