dockerfile/examples/omnivore/db/Dockerfile

21 lines
413 B
Docker

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"]