newnodejs / Dockerfile
ulduldp's picture
Update Dockerfile
a257a65 verified
raw
history blame contribute delete
305 Bytes
# Use latest Node.js (official)
FROM node:latest
# Set working directory
WORKDIR /
# Copy package files first (for caching)
COPY package*.json ./
# Install dependencies
RUN npm install --production
# Copy rest of the app
COPY . .
# Expose port
EXPOSE 8501
# Start app
ENTRYPOINT ["node", "index.js"]