This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
FROM nginx:1.25-alpine
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
RUN chown -R nginx:nginx /var/cache/nginx /var/log/nginx /etc/nginx
|
||||
USER nginx
|
||||
EXPOSE 8080
|
||||
|
||||
@@ -1,7 +1,17 @@
|
||||
worker_processes auto;
|
||||
pid /tmp/nginx.pid;
|
||||
|
||||
events {}
|
||||
|
||||
http {
|
||||
client_body_temp_path /tmp/client_body;
|
||||
proxy_temp_path /tmp/proxy;
|
||||
fastcgi_temp_path /tmp/fastcgi;
|
||||
uwsgi_temp_path /tmp/uwsgi;
|
||||
scgi_temp_path /tmp/scgi;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen 8080;
|
||||
location / {
|
||||
return 200 'Hello from custom nginx!';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user