mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -30,7 +30,7 @@ http {
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
`;
|
||||
|
||||
export const buildStatic = async (
|
||||
application: ApplicationNested,
|
||||
@@ -41,11 +41,7 @@ export const buildStatic = async (
|
||||
|
||||
try {
|
||||
if (isStaticSpa) {
|
||||
createFile(
|
||||
buildAppDirectory,
|
||||
"nginx.conf",
|
||||
nginxSpaConfig,
|
||||
);
|
||||
createFile(buildAppDirectory, "nginx.conf", nginxSpaConfig);
|
||||
}
|
||||
|
||||
createFile(
|
||||
@@ -60,9 +56,9 @@ export const buildStatic = async (
|
||||
[
|
||||
"FROM nginx:alpine",
|
||||
"WORKDIR /usr/share/nginx/html/",
|
||||
isStaticSpa ? 'COPY nginx.conf /etc/nginx/nginx.conf' : '',
|
||||
isStaticSpa ? "COPY nginx.conf /etc/nginx/nginx.conf" : "",
|
||||
`COPY ${publishDirectory || "."} .`,
|
||||
'CMD ["nginx", "-g", "daemon off;"]'
|
||||
'CMD ["nginx", "-g", "daemon off;"]',
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user