Improve Dockerfile
This commit is contained in:
parent
1c92355c0d
commit
3d36d49f41
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,9 @@ RUN python3 -m venv /tmp/venv \
|
|||
&& /tmp/venv/bin/pip3 install lektor jsonnet \
|
||||
;
|
||||
|
||||
# set reasonable worker_processes (auto=number of host cpus)
|
||||
RUN sed -i -r 's/^(worker_processes)(.*)$/\1 '2';/' /etc/nginx/nginx.conf
|
||||
|
||||
RUN mkdir -p /tmp/src
|
||||
ADD assets/ /tmp/src/assets/
|
||||
ADD content/ /tmp/src/content/
|
||||
|
@ -37,3 +40,4 @@ RUN /tmp/venv/bin/lektor build \
|
|||
;
|
||||
|
||||
USER $UID
|
||||
EXPOSE 8080
|
||||
|
|
Loading…
Add table
Reference in a new issue