Spaces:
Sleeping
Sleeping
# Base image | |
FROM python:3.9-slim-buster | |
# Set working directory | |
WORKDIR /app | |
# Copy requirements.txt and install dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy package.json and install npm packages | |
COPY package.json . | |
RUN apt-get update && apt-get install -y npm && npm install | |
# Copy the rest of the files | |
COPY . . | |
# Expose the port | |
EXPOSE 3000 | |
# Start the application | |
CMD ["npm", "start"] |