mirror of
https://github.com/sergeyyarkov/node-docker-example.git
synced 2026-10-11 10:19:41 +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 ./
|
COPY --chown=node:node ./package*.json ./
|
||||||
RUN npm ci --production
|
RUN npm ci --production
|
||||||
COPY --chown=node:node . .
|
COPY --chown=node:node . .
|
||||||
|
RUN ["chmod", "+x", "./scripts/wait-for.sh"]
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
CMD ["dumb-init", "node", "index.js"]
|
CMD ["dumb-init", "node", "index.js"]
|
||||||
@ -32,15 +32,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./:/home/node/app
|
- ./:/home/node/app
|
||||||
- node_modules:/home/node/app/node_modules
|
- node_modules:/home/node/app/node_modules
|
||||||
command:
|
entrypoint: ['./scripts/wait-for.sh', 'postgres:5432', '--']
|
||||||
[
|
command: ['dumb-init', 'node', 'index.js']
|
||||||
'./scripts/wait-for.sh',
|
|
||||||
'postgres:5432',
|
|
||||||
'--',
|
|
||||||
'dumb-init',
|
|
||||||
'node',
|
|
||||||
'index.js',
|
|
||||||
]
|
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user