AIO2 / Dockerfile
sikeaditya's picture
Update Dockerfile
6159b71 verified
raw
history blame
469 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY . .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Create uploads directory and feedback.json with proper permissions
RUN mkdir -p static/uploads && \
touch feedback.json && \
chmod 777 static/uploads && \
chmod 666 feedback.json
# Run as non-root user for security
RUN adduser --disabled-password --gecos '' appuser
USER appuser
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]