Update buildpacks for static sites
This commit is contained in:
		| @@ -7,17 +7,16 @@ const createDockerfile = async (data, image): Promise<void> => { | ||||
|  | ||||
| 	Dockerfile.push(`FROM ${image}`); | ||||
| 	Dockerfile.push(`LABEL coolify.image=true`); | ||||
| 	Dockerfile.push('WORKDIR /usr/share/nginx/html'); | ||||
| 	Dockerfile.push('WORKDIR /app'); | ||||
| 	Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`); | ||||
| 	Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`); | ||||
| 	Dockerfile.push(`EXPOSE 80`); | ||||
| 	Dockerfile.push('CMD ["nginx", "-g", "daemon off;"]'); | ||||
| 	await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n')); | ||||
| }; | ||||
|  | ||||
| export default async function (data) { | ||||
| 	try { | ||||
| 		const image = 'nginx:stable-alpine'; | ||||
| 		const image = 'webdevops/nginx:alpine'; | ||||
| 		const imageForBuild = 'node:lts'; | ||||
| 		await buildCacheImageWithNode(data, imageForBuild); | ||||
| 		await createDockerfile(data, image); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Andras Bacsai
					Andras Bacsai