23 lines
497 B
Docker
23 lines
497 B
Docker
# Dockerfile
|
|
FROM nginx:alpine
|
|
|
|
# Remover configuração padrão do Nginx
|
|
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/
|
|
|
|
# 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
|
|
|
|
# Comando padrão
|
|
CMD ["nginx", "-g", "daemon off;"]
|
|
|