Files
Julianum/Dockerfile
Dinawo 9233856850
All checks were successful
continuous-integration/drone Build is passing
chore: Update Dockerfile to use Node.js version 22 and expose port 8005
2024-07-04 16:19:43 +02:00

21 lines
438 B
Docker

# Use an official Node.js runtime as the base image
FROM node:22
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code to the working directory
COPY . .
# Expose a port (if needed)
EXPOSE 8005
# Define the command to run the application
CMD [ "npm", "start" ]