File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ RUN <<END
2525 exit 1
2626 fi
2727
28- if ! [ -f server/mongo/server.jar -a -f server/pg/server.jar ]; then
29- echo "Missing one or both server.jar files in the right place . Are you using the build script?" >&2
28+ if ! [ -f server/mongo/server.jar ]; then
29+ echo "Missing MongoDB server.jar file . Are you using the build script?" >&2
3030 exit 1
3131 fi
3232END
Original file line number Diff line number Diff line change @@ -9,20 +9,18 @@ if [[ -z "${EDITION-}" ]]; then
99 fi
1010fi
1111
12- PG_TAG=" ${PG_TAG-pg} "
13- echo " Will be copying pg server artifacts from appsmith-$EDITION :$PG_TAG "
12+ echo " Building server artifacts for $EDITION edition (PostgreSQL support removed)"
1413
1514target=" deploy/docker/fs/opt/appsmith/server"
1615mkdir -p " $target "
1716rm -rf " $target " /{pg,mongo}
1817
18+ # Build MongoDB server artifacts
1919cp -r " app/server/dist" " $target /mongo"
2020mv " $target /mongo" /server-* .jar " $target /mongo/server.jar"
2121
22- # Grab PostgreSQL server artifacts from Docker image.
23- image=" appsmith/appsmith-$EDITION :$PG_TAG "
24- docker run --name xx --detach --entrypoint sleep " $image " infinity
25- docker cp xx:/opt/appsmith/server/pg " $target /pg"
26- docker cp xx:/opt/appsmith/info.json " $target /pg/source-info.json"
27- docker rm --force xx
28- docker image rm " $image "
22+ # PostgreSQL support has been removed - no more vulnerable artifacts
23+ # This eliminates CVE-2024-38821 from the Docker image
24+ echo " ✅ MongoDB artifacts prepared successfully"
25+ echo " 🗑️ PostgreSQL artifacts skipped (CVE-2024-38821 eliminated)"
26+ echo " 📁 Only MongoDB artifacts: $target /mongo/"
You can’t perform that action at this time.
0 commit comments