Skip to content

Commit

Permalink
add Dockerfile for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-mesnyankin committed May 9, 2024
1 parent c4b5bfd commit 6b9a15f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile.eva
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

0 comments on commit 6b9a15f

Please sign in to comment.