node1 / Dockerfile
1tbfree's picture
Create Dockerfile
416241e verified
raw
history blame
386 Bytes
# Use the official Node.js image as the base image
FROM node:18
# Set the working directory in the container
WORKDIR /balls
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the port the app runs on
EXPOSE 7860
# Command to run the application
CMD ["node", "server.js"]