Skip to content

Commit

Permalink
specified port
Browse files Browse the repository at this point in the history
  • Loading branch information
lostmypillow committed Aug 21, 2024
1 parent 3e66315 commit 4fef56e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:lts-alpine
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN corepack enable
COPY ["package.json", "package-lock.json*", "pnpm-lock.json*", "./"]
RUN pnpm install --production --silent && mv node_modules ../
COPY . .
EXPOSE 3002
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon ./app.js localhost 3002",
"prod": "node ./app.js"
"prod": "node ./app.js localhost 3002"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 4fef56e

Please sign in to comment.