Vladir-Docker-Test / Dockerfile
TuringsSolutions's picture
Update Dockerfile
025b23d verified
raw
history blame contribute delete
401 Bytes
# Use an official Node.js runtime as a parent image
FROM node:14
# Set the working directory
WORKDIR /usr/src/app
# Copy package.json
COPY package.json ./
# Clear npm cache and install dependencies
RUN npm cache clean --force
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the port the app runs on
EXPOSE 7860
# Define the command to run the app
CMD ["node", "app.js"]