Files
Backup-Dashboard/dockerfile
T
kyle 5582cfce39 Add dockerfile
Initial upload
2026-10-04 04:34:31 +00:00

21 lines
433 B
Docker

# Use the official Node.js image from the Docker Hub
FROM node:18-alpine
# Set the working directory inside the container
WORKDIR /app
# Copy the package.json and package-lock.json to install dependencies
COPY package.json .
COPY package-lock.json .
# Install dependencies
RUN npm install
# Copy the rest of the app files
COPY . .
# Expose the port the app runs on
EXPOSE 3000
# Command to run the app
CMD ["node", "server.js"]