htmlnode / Dockerfile
srivatsavdamaraju's picture
Update Dockerfile
8c5c84c verified
raw
history blame contribute delete
357 Bytes
# Best base image for Puppeteer – Chromium preinstalled, fully compatible
FROM ghcr.io/puppeteer/puppeteer:latest
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install production dependencies
RUN npm install --production
# Copy your app
COPY . .
# Expose port
EXPOSE 7860
# Start server
CMD ["node", "server.js"]