fix: Dockerfile
This commit is contained in:
parent
1ec6ef8f1f
commit
4472430633
16
Dockerfile
16
Dockerfile
@ -1,22 +1,8 @@
|
|||||||
# Dockerfile
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
# Remover configuração padrão do Nginx
|
# Copiar arquivos do site (inclui robots.txt e sitemap.xml automaticamente)
|
||||||
RUN rm /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
# Copiar nossa configuração personalizada
|
|
||||||
COPY nginx.conf /etc/nginx/conf.d/
|
|
||||||
|
|
||||||
# Copiar arquivos do site
|
|
||||||
COPY . /usr/share/nginx/html/
|
COPY . /usr/share/nginx/html/
|
||||||
|
|
||||||
# Garantir que robots.txt e sitemap.xml estão no lugar correto
|
|
||||||
COPY robots.txt /usr/share/nginx/html/robots.txt
|
|
||||||
COPY sitemap.xml /usr/share/nginx/html/sitemap.xml
|
|
||||||
|
|
||||||
# Expor porta 80
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
# Comando padrão
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user