I've run into an nginx limiting issue that requires me to extend config of my nginx dockerfile, I found a Dockerfile
extension logic listed here but I'm having trouble getting it to work, I'm not sure what I'm supposed to use for the COPY . /app/
for because I don't need to copy anything into the image to my understanding, I just need that magic script.
Here is the whole Dockerfile for reference
FROM jwilder/nginx-proxy
COPY . /app/
RUN { \
# Increased the number of worker_processes from any number to 4
sed -i 's/\(worker_processes\s*\)[0-9]*;/\14;/' /etc/nginx/nginx.conf; \
# Increased the number of worker_connections from any number to 19000
sed -i 's/\(worker_connections\s*\)[0-9]*;/\119000;/' /etc/nginx/nginx.conf; \
}
Removing COPY
doesn't work, the build context just gets huge (over 1GB) so I'm guessing it's grabbing everything in the repo it's in.