An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: apache on arm
Andras Bacsai3d5ea8629c41
diff --git a/apps/api/src/lib/buildPacks/common.ts b/apps/api/src/lib/buildPacks/common.tsindex b13f667848..97e15ef853 100644--- a/apps/api/src/lib/buildPacks/common.ts+++ b/apps/api/src/lib/buildPacks/common.ts@@ -58,8 +58,8 @@ export function setDefaultBaseImage(buildPack: string | null, deploymentType: stlabel: 'nginx:alpine'},{- value: 'apache:alpine',- label: 'apache:alpine'+ value: 'httpd:alpine',+ label: 'httpd:alpine (Apache)'}];const rustVersions = [@@ -592,6 +592,7 @@ export async function copyBaseConfigurationFiles(`);}+ // TODO: Add more configuration files for other buildpacks, like apache2, etc.} catch (error) {throw new Error(error);}diff --git a/apps/api/src/lib/buildPacks/static.ts b/apps/api/src/lib/buildPacks/static.tsindex c727985cae..1600986548 100644--- a/apps/api/src/lib/buildPacks/static.ts+++ b/apps/api/src/lib/buildPacks/static.ts@@ -18,7 +18,11 @@ const createDockerfile = async (data, image): Promise<void> => {const Dockerfile: Array<string> = [];Dockerfile.push(`FROM ${image}`);- Dockerfile.push('WORKDIR /app');+ if (baseImage?.includes('httpd')) {+ Dockerfile.push('WORKDIR /usr/local/apache2/htdocs/');+ } else {+ Dockerfile.push('WORKDIR /app');+ }Dockerfile.push(`LABEL coolify.buildId=${buildId}`);if (secrets.length > 0) {secrets.forEach((secret) => {