bex / Dockerfile
Reaperxxxx's picture
Create Dockerfile
415bf67 verified
Raw
History Blame Contribute Delete
327 Bytes
# Use an official Node.js runtime
FROM node:18-alpine
# Set working directory inside container
WORKDIR /app
# Copy package files first (for caching)
COPY package.json ./
# Install dependencies
RUN npm install --production
# Copy all files
COPY . .
# Expose the web port
EXPOSE 7860
# Start the server
CMD ["npm", "start"]