Improve Dockerfile
This commit is contained in:
parent
633cd12a2a
commit
4f9f2eedb9
1 changed files with 5 additions and 0 deletions
|
@ -1,2 +1,7 @@
|
|||
FROM nginxinc/nginx-unprivileged:1.25.2
|
||||
|
||||
# set reasonable worker_processes (auto=number of host cpus)
|
||||
RUN sed -i -r 's/^(worker_processes)(.*)$/\1 '2';/' /etc/nginx/nginx.conf
|
||||
|
||||
COPY html /usr/share/nginx/html
|
||||
EXPOSE 8080
|
||||
|
|
Loading…
Add table
Reference in a new issue