mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
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.
16 lines
335 B
Docker
16 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"]
|