Skip to content

Commit

Permalink
chore(build): install isolated-vm globally to base ap image
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledmashaly committed Jan 23, 2024
1 parent 0bf0f8d commit ec9cd31
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### STAGE 1: Build ###
FROM activepieces/ap-base:9 AS build
FROM activepieces/ap-base:10 AS build

# Set up backend
WORKDIR /usr/src/app
Expand All @@ -18,7 +18,7 @@ RUN npx nx run-many --target=build --projects=backend,ui-core --configuration pr
RUN cd dist/packages/backend && npm install --production --force

### STAGE 2: Run ###
FROM activepieces/ap-base:9 AS run
FROM activepieces/ap-base:10 AS run

ARG AP_CACHE_PATH=/usr/src/cache
ARG AP_PACKAGE_ARCHIVE_PATH=/usr/src/packages
Expand Down
10 changes: 8 additions & 2 deletions ap-base.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ RUN npm i -g \
npm@9.3.1 \
pnpm@7.28.0

# setup pnpm home directory
ENV PNPM_HOME=/root/.local/share/pnpm
ENV PATH=$PNPM_HOME:$PATH

RUN pnpm add -g \
isolated-vm@4.6.0

RUN pnpm store add \
@tsconfig/node18@1.0.0 \
@types/node@18.17.1 \
typescript@4.8.4 \
isolated-vm@4.6.0
typescript@4.8.4
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version: '3.0'

services:
app:
image: activepieces/ap-base:9
image: activepieces/ap-base:10
container_name: ap
environment:
AP_CACHE_PATH: /usr/src/cache
Expand Down

0 comments on commit ec9cd31

Please sign in to comment.