mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-24 22:46:41 +07:00
fix dockerfile
This commit is contained in:
parent
6ac6ca9356
commit
eb63618aeb
2 changed files with 3 additions and 1 deletions
|
@ -15,6 +15,8 @@ FROM node:18-bookworm AS runner
|
||||||
WORKDIR /app/dist
|
WORKDIR /app/dist
|
||||||
|
|
||||||
COPY --from=builder /app/dist ./
|
COPY --from=builder /app/dist ./
|
||||||
|
COPY --from=builder /app/templates /templates
|
||||||
|
|
||||||
COPY ./docker/wait-for-it.sh .
|
COPY ./docker/wait-for-it.sh .
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"environment": "docker-compose -f ./docker/docker-compose.yml up db -d",
|
"environment": "docker-compose -f ./docker/docker-compose.yml up db -d",
|
||||||
"start": "node ./dist/index.js",
|
"start": "node ./dist/index.js",
|
||||||
"dev": "NODE_ENV=dev node -r ts-node/register ./src/index.ts --config=./config.yml",
|
"dev": "NODE_ENV=dev node -r ts-node/register ./src/index.ts --config=./config.yml",
|
||||||
"build": "rm -rf ./output ./dist && tsc && yarn ncc build ./output/index.js -o ./dist && rm -rf ./output && copyfiles -f ./config*.yml ./dist && copyfiles ./templates/*.md ./dist",
|
"build": "rm -rf ./output ./dist && tsc && yarn ncc build ./output/index.js -o ./dist && rm -rf ./output",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue