alibidaran's picture
Update Dockerfile
a5a9821 verified
raw
history blame
377 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 npm && \
apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN npm install -g http-server
COPY . .
EXPOSE 8501 8080
CMD ["python", "run.py"]