alibidaran's picture
Update Dockerfile
92e2bfb verified
raw
history blame
588 Bytes
FROM python:3.9-slim
RUN apt-get update && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Set work directory
WORKDIR /app
# Copy requirements if you have one, else skip this step
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Install http-server globally
RUN npm install -g http-server
# Copy the rest of the app
COPY . .
# Expose Streamlit (8501) and http-server (8080) ports
EXPOSE 8501 8080
# Run the Python script
CMD ["python", "run.py"]