Files
omnivore/packages/db/Dockerfile
Jackson Harper 5f81cd4729 Remove root pkg dependencies from db docker image
Because this is just used to execute the migrations we can
use the non-locked versions here and don't need to pull in all
of the root workspace packages.
2022-02-13 22:12:19 -08:00

17 lines
335 B
Docker

FROM node:14.18-alpine
WORKDIR /app
COPY tsconfig.json .
COPY /packages/db/package.json ./packages/db/package.json
RUN apk --no-cache --virtual build-dependencies add postgresql
RUN yarn install
ADD /packages/db ./packages/db
ADD /packages/db/setup.sh ./packages/db/setup.sh
CMD ["yarn", "workspace", "@omnivore/db", "migrate"]