mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-21 12:33:13 +00:00
fix: remove .git dir from final image
This commit is contained in:
@@ -43,6 +43,7 @@ const createDockerfile = async (data, image): Promise<void> => {
|
||||
Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);
|
||||
}
|
||||
Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app${publishDirectory} ./`);
|
||||
Dockerfile.push('RUN rm -fr .git');
|
||||
Dockerfile.push(`EXPOSE 80`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user