Spaces:
Building
Building
File size: 381 Bytes
6d7b4f0 3bf6766 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
FROM node:20-slim
WORKDIR /app
# Copy package.json and package-lock.json
COPY package.json package-lock.json* ./
# Install dependencies
RUN npm ci
# Copy source code
COPY . .
# Expose the port
EXPOSE 7860
# Set environment variables (these can be overridden at runtime)
ENV PORT=7860
ENV TZ=Asia/Shanghai
# Start the application
CMD ["node", "index.js"] |