ImageCompress / Dockerfile
MukeshKapoor25's picture
Update Dockerfile
5b66c93 verified
raw
history blame contribute delete
398 Bytes
# Use Node.js LTS version as the base image
FROM node:18
# Set the working directory inside the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json into the container
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the application files into the container
COPY . .
# Expose the application port
EXPOSE 3000
# Start the application
CMD ["npm", "start"]