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 ./
|
COPY package*.json ./
|
||||||
|
|
||||||
RUN npm install pm2 -g
|
RUN npm install pm2 -g
|
||||||
RUN npm install
|
RUN npm Install
|
||||||
# If you are building your code for production
|
|
||||||
# RUN npm ci --omit=dev
|
|
||||||
|
|
||||||
# Bundle app source
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
CMD [ "pm2-runtime", "index.js" ]
|
||||||
Reference in New Issue
Block a user