Need help with create a docker container in my angular app.
Nginx configuration : app.conf
root /usr/share/nginx/html;
index index.html index.htm;
server {
listen 80;
rewrite /faculty /;
location / {
gzip_static on;
proxy_cookie_path / "/; HTTPOnly; Secure";
}
location = /pipes/parsedate.pipe.js {
try_files $uri /pipes/parseDate.pipe.js;
}
location = /services/Auth.js {
try_files $uri /services/auth.js;
}
if ( $http_x_forwarded_proto != "https" ) {
return 301 https://$host$request_uri;
}
error_page 404 =200 /index.html;
}
Docker conf
FROM nginx
RUN rm /etc/nginx/conf.d/default.conf
RUN rm -rf /usr/share/nginx/html/*
COPY nginx_conf /etc/nginx/conf.d
COPY dist/a8 /usr/share/nginx/html
VOLUME /var/log/nginx
Commands used to run the container
docker build -t a82 -f docker_conf/Dockerfile .
docker run -d -p 80:80 a82
But i dont see anything when i run http://localhost.
Please help , not sure whats the issue