You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
429 B
21 lines
429 B
FROM node:20
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
# Copy package.json and package-lock.json
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install --production
|
|
# Copy the rest of the application code
|
|
COPY . .
|
|
# Expose the port the app runs on
|
|
EXPOSE 8000
|
|
|
|
# Install netcat for health checks
|
|
RUN apt-get update && apt-get install -y netcat-openbsd
|
|
|
|
# Install the cli tools
|
|
|
|
|
|
# Start the application
|
|
CMD ["npm", "start"]
|