Initial commit: AgroTO marketing landing (static, Nginx in Docker)
This commit is contained in:
+16
@@ -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
|
||||
Reference in New Issue
Block a user