hfsthesh1t / Dockerfile
Moonfanz's picture
Upload 3 files
3bf6766 verified
raw
history blame contribute delete
381 Bytes
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"]