Skip to content
Snippets Groups Projects
Commit 536ca8ad authored by Homada.Boumedane's avatar Homada.Boumedane
Browse files

chore(dlcm-portal): dockerfile

create dockerfile and config file  for nginx web server
parent 84e69aab
No related branches found
No related tags found
No related merge requests found
FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
COPY nginx.conf /etc/nginx/nginx.conf
COPY ./dist/DLCM-Frontend/. /usr/share/nginx/html
RUN rm -rf sr/share/nginx/html/assets/configurations/*
EXPOSE 81
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
worker_processes 1;
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html index.htm;
include /etc/nginx/mime.types;
gzip on;
gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
location / {
try_files $uri $uri/ /index.html;
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment