mirror of
https://github.com/sergeyyarkov/node-docker-example.git
synced 2026-10-11 02:09:22 +03:00
fix: fixed entrypoint
This commit is contained in:
parent
e1d5421fa2
commit
957f2a5e73
@ -16,5 +16,6 @@ FROM base as production
|
||||
COPY --chown=node:node ./package*.json ./
|
||||
RUN npm ci --production
|
||||
COPY --chown=node:node . .
|
||||
RUN ["chmod", "+x", "./scripts/wait-for.sh"]
|
||||
EXPOSE 4000
|
||||
CMD ["dumb-init", "node", "index.js"]
|
||||
@ -32,15 +32,8 @@ services:
|
||||
volumes:
|
||||
- ./:/home/node/app
|
||||
- node_modules:/home/node/app/node_modules
|
||||
command:
|
||||
[
|
||||
'./scripts/wait-for.sh',
|
||||
'postgres:5432',
|
||||
'--',
|
||||
'dumb-init',
|
||||
'node',
|
||||
'index.js',
|
||||
]
|
||||
entrypoint: ['./scripts/wait-for.sh', 'postgres:5432', '--']
|
||||
command: ['dumb-init', 'node', 'index.js']
|
||||
networks:
|
||||
- app-network
|
||||
depends_on:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user