Files
islamicconfig/dockerfile
mstfyldz 65007297a0 docker
2026-03-06 19:34:38 +03:00

20 lines
585 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# En hafif Nginx imajını kullanıyoruz
FROM nginx:alpine
# JSON dosyasını Nginx'in varsayılan yayın klasörüne kopyala
COPY config.json /usr/share/nginx/html/config.json
# (Opsiyonel) CORS hatalarını önlemek için özel bir Nginx konfigürasyonu ekleyelim
RUN echo 'server { \
listen 80; \
location / { \
root /usr/share/nginx/html; \
index index.json; \
add_header Access-Control-Allow-Origin *; \
add_header Content-Type application/json; \
} \
}' > /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]