mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-24 22:46:41 +07:00
26 lines
388 B
Docker
26 lines
388 B
Docker
FROM node:18-alpine as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./package.json .
|
|
COPY ./yarn.lock .
|
|
RUN yarn
|
|
|
|
COPY . .
|
|
RUN yarn build
|
|
|
|
FROM node:18-alpine AS runner
|
|
|
|
RUN apk add --no-cache tzdata bash
|
|
|
|
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.sh
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["node", "./index.js"]
|