forked from yacinehmito/airbyte-connectors
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (15 loc) · 699 Bytes
/
Dockerfile
File metadata and controls
20 lines (15 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:14-alpine
WORKDIR /home/node/airbyte
RUN npm install -g npm@7 lerna tsc
COPY lerna.json .tsconfig.json package.json package-lock.json ./
RUN sed -i "/eslint\|husky\|jest\|lint-staged\|mockttp\|prettier/d" package.json
COPY ./faros-airbyte-cdk ./faros-airbyte-cdk
COPY ./sources ./sources
COPY ./destinations ./destinations
RUN lerna bootstrap --hoist
ARG path
RUN test -n "$path" || (echo "'path' argument is not set, e.g --build-arg path=destinations/airbyte-faros-destination" && false)
ENV CONNECTOR_PATH $path
RUN ln -s "/home/node/airbyte/$CONNECTOR_PATH/bin/main" "/home/node/airbyte/main"
ENV AIRBYTE_ENTRYPOINT "/home/node/airbyte/main"
ENTRYPOINT ["/home/node/airbyte/main"]