Files
nginx-cache/Dockerfile

12 lines
421 B
Docker

FROM openresty/openresty:alpine
# 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
EXPOSE 3000
CMD ["/usr/local/openresty/bin/openresty", "-g", "daemon off;"]