Skip to content

Commit

Permalink
fix: docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
abuaboud committed Sep 30, 2023
1 parent c88ecad commit 88a1ace
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 31 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ jobs:
push: true
tags: |
activepieces/activepieces:${{ env.RELEASE }}
activepieces/activepieces:latest
21 changes: 6 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@ FROM activepieces/ap-base:7 AS build
WORKDIR /usr/src/app
COPY . .

RUN apt-get update \
&& apt-get install --assume-yes --no-install-recommends --quiet \
ca-certificates \
cmake \
git \
g++ \
make \
libzip-dev \
&& apt-get clean all

# Install backend dependencies and build the projects
RUN apt update && apt install -y cmake libopenblas-dev patchelf

# Install Node.js dependencies
RUN npm ci

# Build the projects
RUN npx nx run-many --target=build --projects=backend,ui-core --skip-nx-cache

# Install backend production dependencies
Expand All @@ -38,12 +32,9 @@ COPY packages/ui/core/nginx.conf /etc/nginx/nginx.conf

# Copy Output files to appropriate directory from build stage
COPY --from=build /usr/src/app/dist/ /usr/src/app/dist/

# Copy Output files to appropriate directory from build stage
COPY --from=build /usr/src/app/packages/ /usr/src/app/packages/


# Copy frontend files to Nginx document root directory from build stage
# Copy frontend files to Nginx document root directory
COPY --from=build /usr/src/app/dist/packages/ui/core/ /usr/share/nginx/html/

# Set up entrypoint script
Expand Down
32 changes: 18 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"jsonwebtoken": "9.0.1",
"jszip": "3.10.1",
"kl-angular-mentions": "1.2.3",
"langchain": "0.0.153",
"langchain": "0.0.156",
"lottie-web": "5.12.2",
"mailparser": "3.6.5",
"marked": "4.3.0",
Expand Down

0 comments on commit 88a1ace

Please sign in to comment.