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
Build and Push Docker Images / build-and-push (push) Failing after 15s
This commit is contained in:
@@ -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
|
||||
CMD [ "pm2-runtime", "index.js" ]
|
||||
Reference in New Issue
Block a user