remove nginx config and use default for docker image

This commit is contained in:
Rodrigo Racanicci 2022-08-15 09:52:12 -03:00
Родитель 0ff7693190
Коммит 87b1b2857f
2 изменённых файлов: 1 добавлений и 44 удалений

Просмотреть файл

@ -1,42 +0,0 @@
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}

Просмотреть файл

@ -34,5 +34,4 @@ RUN yarn build
# --- statically serve built application with nginx ---
FROM ${REGISTRY}nginx:1.21
COPY --from=app-builder /usr/src/sds/packages/webapp/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=app-builder /usr/src/sds/packages/webapp/dist /usr/share/nginx/html