chore: Update Dockerfile to use npm Install instead of npm install and add CMD for running the application with pm2-runtime
Build and Push Docker Images / build-and-push (push) Failing after 15s

This commit is contained in:
2024-08-03 17:51:19 +02:00
parent 4bca73abdd
commit b3e348b4fe
+3 -5
View File
@@ -15,11 +15,9 @@ WORKDIR /server
COPY package*.json ./
RUN npm install pm2 -g
RUN npm install
# If you are building your code for production
# RUN npm ci --omit=dev
RUN npm Install
# Bundle app source
COPY . .
EXPOSE 3000
EXPOSE 3000
CMD [ "pm2-runtime", "index.js" ]