feat: Add Docker buildpack exposed port setting

This commit is contained in:
Andras Bacsai
2022-07-12 09:58:59 +02:00
parent f0ed51cd22
commit 8f9462245a
10 changed files with 24 additions and 26 deletions

View File

@@ -9,7 +9,7 @@ const createDockerfile = async (data, image): Promise<void> => {
Dockerfile.push(`LABEL coolify.buildId=${buildId}`);
Dockerfile.push('WORKDIR /app');
Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);
if (baseImage.includes('nginx')) {
if (baseImage?.includes('nginx')) {
Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);
}
Dockerfile.push(`EXPOSE ${port}`);