Switch to openresty to better handle params

This commit is contained in:
2026-01-27 13:56:00 +01:00
parent da68d078b0
commit 07572f8e6c
2 changed files with 41 additions and 20 deletions

View File

@@ -1,15 +1,11 @@
FROM nginx:alpine
FROM openresty/openresty:alpine
# Copy nginx configuration and HTML
COPY nginx.conf /etc/nginx/nginx.conf
# Copy config (OpenResty uses this path)
COPY nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
# HTML and data dirs (config references /usr/share/nginx/html and /etc/nginx/data)
RUN mkdir -p /usr/share/nginx/html /etc/nginx/data/cache /etc/nginx/data/temp
COPY index.html /usr/share/nginx/html/index.html
# Create data directories
RUN mkdir -p /etc/nginx/data/cache /etc/nginx/data/temp && \
chown -R nginx:nginx /etc/nginx/data
# Expose port
EXPOSE 3000
# Start nginx
CMD ["nginx", "-g", "daemon off;"]
CMD ["/usr/local/openresty/bin/openresty", "-g", "daemon off;"]