fix: apache on arm
This commit is contained in:
parent
4aaf59d034
commit
3d5ea8629c
@ -58,8 +58,8 @@ export function setDefaultBaseImage(buildPack: string | null, deploymentType: st
|
||||
label: '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);
|
||||
}
|
||||
|
@ -18,7 +18,11 @@ const createDockerfile = async (data, image): Promise<void> => {
|
||||
const Dockerfile: Array<string> = [];
|
||||
|
||||
Dockerfile.push(`FROM ${image}`);
|
||||
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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user