Spaces:
Building
Building
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"] |