mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 19:07:58 +03:00
25 lines
566 B
Docker
25 lines
566 B
Docker
# no alpine here as we want bash + general nice-to-haves
|
|
FROM node:16 as base
|
|
|
|
RUN npm install --silent -g pnpm
|
|
|
|
FROM base AS build
|
|
WORKDIR /app
|
|
|
|
COPY pnpm-lock.yaml .
|
|
COPY patches ./patches
|
|
|
|
RUN pnpm fetch
|
|
|
|
COPY database-seeds ./database-seeds
|
|
COPY common ./common
|
|
COPY *.json *.yaml ./
|
|
|
|
RUN pnpm --filter tachi-database-seeds... --filter . install --offline --frozen-lockfile
|
|
|
|
WORKDIR /app/database-seeds
|
|
|
|
# keep container alive indefinitely
|
|
# we just have this container so db-seeds maintainers have a nice "context"
|
|
# to work with
|
|
CMD ["tail", "-f", "/dev/null"] |