intial commit
هذا الالتزام موجود في:
18
q3-cicd/Dockerfile
Normal file
18
q3-cicd/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# Use a lightweight Node base image
|
||||
FROM node:18-alpine
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy dependency definitions and install them
|
||||
COPY package*.json ./
|
||||
RUN npm install --production
|
||||
|
||||
# Copy the application code
|
||||
COPY . .
|
||||
|
||||
# Expose the API port
|
||||
EXPOSE 3000
|
||||
|
||||
# Start the application
|
||||
CMD ["npm", "start"]
|
||||
المرجع في مشكلة جديدة
حظر مستخدم