Initial commit: AgroTO marketing landing (static, Nginx in Docker)

This commit is contained in:
admin
2026-04-30 10:55:57 +03:00
commit fda77e04a0
16 changed files with 5574 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM nginx:alpine
COPY . /usr/share/nginx/html/
RUN rm -f /usr/share/nginx/html/Dockerfile
# Nginx конфиг — SPA fallback не нужен, у нас статика с html-файлами
RUN echo 'server { \
listen 80; \
root /usr/share/nginx/html; \
index index.html; \
gzip on; \
gzip_types text/html text/css application/javascript image/svg+xml; \
location / { try_files $uri $uri/ $uri.html =404; } \
location = /privacy { return 301 /privacy.html; } \
add_header X-Content-Type-Options nosniff; \
add_header X-Frame-Options SAMEORIGIN; \
}' > /etc/nginx/conf.d/default.conf
EXPOSE 80