mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-25 06:56:40 +07:00
#6 removed node_modules volume
This commit is contained in:
parent
814f1ade78
commit
b4dd6b93fd
2 changed files with 1 additions and 4 deletions
|
@ -6,13 +6,12 @@ RUN rm -rf /app/*
|
||||||
COPY ./package.json .
|
COPY ./package.json .
|
||||||
COPY ./yarn.lock .
|
COPY ./yarn.lock .
|
||||||
|
|
||||||
RUN yarn
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN yarn
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
WORKDIR /app/dist
|
WORKDIR /app/dist
|
||||||
COPY ./docker/wait-for-it.sh .
|
COPY ./docker/wait-for-it.sh .
|
||||||
|
|
||||||
EXPOSE ${EXPOSE}
|
EXPOSE ${EXPOSE}
|
||||||
#HEALTHCHECK --interval=5m --timeout=30s CMD curl -f http://localhost/ || kill -s 2 1
|
|
||||||
CMD ["node", "./index.js"]
|
CMD ["node", "./index.js"]
|
||||||
|
|
|
@ -23,7 +23,6 @@ services:
|
||||||
- ${EXPOSE}:80
|
- ${EXPOSE}:80
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- node_modules:/app/node_modules
|
|
||||||
entrypoint: ./wait-for-it.sh -t 90 db:5432 -- node ./index.js
|
entrypoint: ./wait-for-it.sh -t 90 db:5432 -- node ./index.js
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
@ -34,4 +33,3 @@ services:
|
||||||
start_period: 5m
|
start_period: 5m
|
||||||
volumes:
|
volumes:
|
||||||
bot-db:
|
bot-db:
|
||||||
node_modules:
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue