licensetrackerbackend/Dockerfile

23 lines
470 B
Docker
Raw Normal View History

2024-08-30 08:28:01 -06:00
# Use the official Node.js 14 image as the base image
FROM node:21.4-alpine
# Set the working directory inside the container
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install project dependencies
RUN npm install
# Copy the project files to the working directory
COPY . ./
# Expose port 3000 for the Node.js application
EXPOSE 3000
2024-08-30 08:51:43 -06:00
WORKDIR /app
2024-08-30 08:28:01 -06:00
# Start the Node.js application
CMD [ "node", "app.js" ]