File tree Expand file tree Collapse file tree 4 files changed +16
-14
lines changed
Expand file tree Collapse file tree 4 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,17 @@ ENV NODE_ENV=production
66
77EXPOSE 3000
88
9- # Run as an unprivileged user.
10- RUN addgroup -S webapp && adduser -S -G webapp webapp
11- RUN mkdir /app && chown webapp /app
9+ RUN addgroup -S webapp && adduser -S -G webapp webapp \
10+ && mkdir /app && chown webapp /app \
11+ && corepack enable
12+
1213USER webapp
1314
1415WORKDIR /app
15- ENTRYPOINT ["yarn " , "start" ]
16+ ENTRYPOINT ["pnpm " , "start" ]
1617
1718COPY package.json pnpm-lock.yaml /app/
1819
19- RUN corepack enable && pnpm i
20+ RUN pnpm i
2021
21- COPY . .
22+ COPY src /app/src
Original file line number Diff line number Diff line change 11{
22 "name" : " docker-ipdb" ,
33 "version" : " 1.2.1" ,
4- "main" : " server.js" ,
4+ "main" : " src/ server.js" ,
55 "repository" :
" [email protected] :metowolf/docker-ipdb.git" ,
66 "author" :
" metowolf <[email protected] >" ,
77 "license" : " MIT" ,
88 "scripts" : {
9- "dev" : " nodemon server.js"
9+ "start" : " node src/server.js" ,
10+ "dev" : " nodemon src/server.js"
1011 },
1112 "dependencies" : {
1213 "@ipdb/database" : " ^2019.7.3" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ const config = require ( './config' )
2+ const { logger } = require ( './middleware/logger' )
3+ const app = require ( './app' )
4+
5+ app . listen ( config . http . port , config . http . host )
6+ logger . info ( `Running on port: ${ config . http . port } ` )
You can’t perform that action at this time.
0 commit comments