fix: fixed entrypoint

This commit is contained in:
Sergey Yarkov 2022-03-23 21:02:34 +03:00
parent e1d5421fa2
commit 957f2a5e73
2 changed files with 3 additions and 9 deletions

View File

@ -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"]

View File

@ -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: