Pass path to command dynamically in Dockerfile
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
FROM openresty/openresty:1.27.1.2-0-bookworm-buildpack
|
||||
|
||||
WORKDIR /opt/app
|
||||
|
||||
RUN apt-get update && apt-get install -y python3-pygments
|
||||
RUN luarocks install sitegen
|
||||
|
||||
CMD ["openresty", "-p", "/opt/", "-g", "daemon off;"]
|
||||
CMD ["sh", "-c", "openresty -p `pwd` -g 'daemon off;'"]
|
||||
|
||||
Reference in New Issue
Block a user