test / Dockerfile
Vinayak221's picture
Update Dockerfile
a8c2502 verified
raw
history blame contribute delete
460 Bytes
FROM python:3.9
# Set the working directory
WORKDIR /app
# Install supervisor
RUN apt-get update && apt-get install -y supervisor
# Copy requirements and install Python dependencies
COPY requirements.txt /app/
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy the rest of the application
COPY . /app/
# Supervisor configuration
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 7860 5001
CMD ["/usr/bin/supervisord"]