dockerfile/examples/omnivore/db/Dockerfile

21 lines
413 B
Docker
Raw Permalink Normal View History

2024-03-15 14:52:38 +08:00
FROM node:18.19.0
WORKDIR /app
COPY package.json .
COPY yarn.lock .
COPY tsconfig.json .
COPY ./db/package.json ./packages/db/package.json
RUN apt-get update && apt-get install -y \
postgresql \
uuid-runtime
RUN yarn config set registry https://registry.npm.taobao.org && yarn install
ADD ./db ./packages/db
ADD ./db/setup.sh ./packages/db/setup.sh
CMD ["yarn", "workspace", "@omnivore/db", "migrate"]