Spaces:
Paused
Paused
File size: 394 Bytes
1216dc3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
FROM node:alpine
# Set the working directory
WORKDIR /app
# Copy only package.json and package-lock.json first to leverage Docker cache
COPY package*.json ./
# Install dependencies
RUN apk add --no-cache openssl curl && npm install
# Copy the rest of the application code
COPY . .
# Expose the application port
EXPOSE 7860
# Set the command to run the application
CMD ["node", "index.js"] |