Skip to content

Commit

Permalink
Fix docker build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sujeet-agrahari committed Jun 25, 2023
1 parent 73d3dae commit 027ae26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM node:16-alpine AS base
ENV NODE_ENV=development
ENV NODE_ENV=production
EXPOSE 3000
RUN npm install -g pnpm
RUN mkdir /app && chown -R node:node /app
Expand All @@ -20,4 +20,4 @@ RUN pnpm install --only=development
CMD ["nodemon", "server.js"]

FROM source as prod
CMD ["node", "server.js"]
CMD ["node", "src/server.js"]
2 changes: 1 addition & 1 deletion healthcheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const checkAppHealth = async () => {
console.log('App is up and running');
// Additional actions if the app is healthy
} else {
console.log('App is not healthy');
console.error('App is not healthy');
// Additional actions if the app is not healthy
}
} catch (error) {
Expand Down

0 comments on commit 027ae26

Please sign in to comment.