FROM node:lts-alpine3.19

# Set the working directory in the container
WORKDIR /app

# Copy package.json and package-lock.json to the working directory
COPY package*.json .

# Install any needed packages specified in package.json
RUN npm install

# Bundle the app source inside the Docker image
COPY . .

# Make port  8000 available to the outside world
EXPOSE  8000

# Define the command to run your app using CMD which defines your runtime
CMD [ "node", "app.mjs" ]
