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.
17 lines
335 B
Docker
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"]
|