dockerfile/examples/omnivore/official-src/omnivore-main/packages/db/Dockerfile

21 lines
375 B
Docker
Raw Normal View History

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