-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4b5bfd
commit 6b9a15f
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM node:18.20.2-bookworm | ||
|
||
WORKDIR /src | ||
|
||
# Creds for NPMJS npm package registry | ||
ARG CREDS | ||
|
||
COPY activepieces/*.json activepieces/*.js activepieces/*.ts activepieces/.* ./ | ||
COPY activepieces/tools ./tools | ||
|
||
RUN node tools/setup-dev.js | ||
|
||
#Copy required files | ||
COPY activepieces ./ | ||
|
||
# Build evaai piece | ||
RUN npx nx run-many -t build --projects=piece-evaai | ||
|
||
# Get npm package version | ||
ARG APP_VERSION | ||
|
||
# Publish evaai piece | ||
RUN echo "$CREDS" >> /root/.npmrc && node tools/scripts/publish.mjs piece-evaai $APP_VERSION latest && rm -f /root/.npmrc | ||
|