17 lines
615 B
Docker
17 lines
615 B
Docker
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
|