1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-24 22:46:41 +07:00
vk-tg-bot/docker/Dockerfile
Fedor Katurov 375960f241
Some checks failed
Build & Publish / Build & Publish (push) Failing after 1m21s
fix wait-for-it.sh
2025-02-26 23:32:03 +07:00

25 lines
397 B
Docker

FROM node:18-alpine as builder
WORKDIR /app
RUN apk add --no-cache tzdata bash
COPY ./package.json .
COPY ./yarn.lock .
RUN yarn
COPY . .
RUN yarn build
FROM node:18-alpine AS runner
WORKDIR /app/dist
COPY --from=builder /app/dist ./
COPY --from=builder /app/templates /templates
COPY ./docker/wait-for-it.sh .
RUN chmod +x ./wait-for-it
EXPOSE 80
CMD ["/bin/bash", "node", "./index.js"]