Switch to openresty to better handle params
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -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;"]
|
||||
|
||||
Reference in New Issue
Block a user