chore: update base image for appsmith (#40058)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated system base image to Ubuntu 24.04. - Upgraded MongoDB to version 6.0 and PostgreSQL to version 14 for improved compatibility and security. - Improved package installation process for reliability. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- This is an auto-generated comment: Cypress test results --> > [!WARNING] > Tests have not run on the HEAD cc483c3707a04347e76f5a58d5e09282a436fc10 yet > <hr>Sun, 27 Apr 2025 11:34:21 UTC <!-- end of auto-generated comment: Cypress test results -->
This commit is contained in:
parent
b1ec758d4f
commit
d64087f366
|
|
@ -3,7 +3,7 @@ FROM caddy:builder-alpine AS caddybuilder
|
|||
RUN xcaddy build \
|
||||
--with github.com/mholt/caddy-ratelimit
|
||||
|
||||
FROM ubuntu:20.04
|
||||
FROM ubuntu:24.04
|
||||
|
||||
LABEL maintainer="tech@appsmith.com"
|
||||
|
||||
|
|
@ -21,13 +21,13 @@ RUN set -o xtrace \
|
|||
supervisor curl nfs-common gnupg \
|
||||
gettext \
|
||||
ca-certificates \
|
||||
# Install MongoDB v5, Redis, PostgreSQL v13
|
||||
&& curl --silent --show-error --location https://www.mongodb.org/static/pgp/server-5.0.asc | apt-key add - \
|
||||
&& echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-5.0.list \
|
||||
# Install MongoDB v6, Redis, PostgreSQL v14
|
||||
&& curl -fsSL https://www.mongodb.org/static/pgp/server-6.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-server-6.0.gpg \
|
||||
&& echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-6.0.list \
|
||||
&& echo "deb http://apt.postgresql.org/pub/repos/apt $(grep CODENAME /etc/lsb-release | cut -d= -f2)-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \
|
||||
&& curl --silent --show-error --location https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
|
||||
&& apt update \
|
||||
&& apt-get install --no-install-recommends --yes mongodb-org redis postgresql-14 \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes mongodb-org redis postgresql-14 \
|
||||
&& apt-get clean
|
||||
|
||||
ENV PATH="/usr/lib/postgresql/14/bin:${PATH}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user