Files
mbmanager-api/Dockerfile
T
2024-12-22 16:53:23 +03:30

21 lines
376 B
Docker

# Use the official Node.js image as a base
FROM node:18
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json to the container
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the application port
EXPOSE 3000
# Start the application
CMD ["npm", "start"]