Spaces:
Running
Running
# Use the official Node.js image as the base image | |
FROM node:14-alpine | |
# Set the working directory in the container | |
WORKDIR /usr/src/app | |
# Copy package.json and package-lock.json to the working directory | |
COPY package*.json ./ | |
# Install npm dependencies | |
RUN npm install | |
RUN npm install node-fetch | |
# Copy the rest of the application code to the working directory | |
COPY . . | |
# Expose the port your app runs on | |
EXPOSE 7860 | |
# Command to run the application | |
CMD ["node", "index.js"] |