Spaces:
Sleeping
Sleeping
File size: 472 Bytes
4dbde5b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Use Node.js LTS version
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json first for caching
COPY package*.json ./
# Install dependencies
RUN npm install --production
# Copy the rest of your code
COPY . .
# Set environment variable for port (Railway will provide it)
ENV PORT=5000
# Expose port (Railway uses the container's port)
EXPOSE 5000
# Command to run your app
CMD ["node", "index.js"] |