refactor nginx
Signed-off-by: Omar Sánchez Pizarro <omar.sanchez@pistacero.net>
This commit is contained in:
@@ -17,11 +17,8 @@ RUN npm run build
|
||||
# Stage de producción - servir con nginx
|
||||
FROM nginx:alpine
|
||||
|
||||
# Copiar archivos construidos
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html/landing
|
||||
|
||||
#change /usr/share/nginx/html to /usr/share/nginx/html/landing
|
||||
RUN sed -i 's|/usr/share/nginx/html|/usr/share/nginx/html/landing|g' /etc/nginx/conf.d/default.conf
|
||||
# Copiar archivos construidos a la raíz
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
|
||||
# Exponer puerto
|
||||
EXPOSE 80
|
||||
|
||||
@@ -5,5 +5,9 @@ import tailwind from '@astrojs/tailwind';
|
||||
export default defineConfig({
|
||||
integrations: [tailwind()],
|
||||
output: 'static',
|
||||
server: {
|
||||
port: 3002,
|
||||
host: true,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user