mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
26 lines
687 B
Text
26 lines
687 B
Text
FROM node:18.16-alpine
|
|
|
|
# Run everything after as non-privileged user.
|
|
WORKDIR /app
|
|
|
|
COPY package.json .
|
|
COPY yarn.lock .
|
|
COPY tsconfig.json .
|
|
COPY .eslintrc .
|
|
|
|
COPY /packages/integration-handler/package.json ./packages/integration-handler/package.json
|
|
|
|
RUN yarn install --pure-lockfile
|
|
|
|
COPY /packages/integration-handler ./packages/integration-handler
|
|
RUN yarn workspace @omnivore/integration-handler build
|
|
|
|
# After building, fetch the production dependencies
|
|
RUN rm -rf /app/packages/integration-handler/node_modules
|
|
RUN rm -rf /app/node_modules
|
|
RUN yarn install --pure-lockfile --production
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["yarn", "workspace", "@omnivore/integration-handler", "start_importer"]
|
|
|