Spaces:
Sleeping
Sleeping
File size: 477 Bytes
bfde8c9 6f9ff59 6a3dee3 bfde8c9 6f9ff59 bfde8c9 6f9ff59 bfde8c9 6f9ff59 5dbb4d7 6f9ff59 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
FROM python:3.10-slim
ENV MPLCONFIGDIR=/tmp/matplotlib
# Install Node.js
RUN apt-get update && apt-get install -y curl gnupg && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Create app directory
WORKDIR /app
COPY . .
# Install Python deps
RUN pip install -r requirements.txt
# Install Node.js deps
RUN npm install
ENV PORT=7860
EXPOSE 7860
CMD ["npm", "start"]
|