fix: env var management
This commit is contained in:
parent
e66a4f0834
commit
f55e93d9a2
@ -4,7 +4,6 @@ RUN useradd -ms /bin/bash --uid 1000 jekyll
|
||||
RUN mkdir -p -m 0755 /app/jekyll
|
||||
RUN mkdir -p -m 0755 /opt/jekyll
|
||||
COPY ./entrypoint.sh /opt/jekyll
|
||||
VOLUME $PWD/data:/opt/jekyll
|
||||
RUN chmod +x /opt/jekyll/ && \
|
||||
chown -R 1000:1000 /opt/jekyll && \
|
||||
chown -R 1000:1000 /app
|
||||
|
@ -12,4 +12,3 @@ services:
|
||||
- ${WWW_PORT:-4000}:4000
|
||||
volumes:
|
||||
- ./jekyll:/app/jekyll
|
||||
- ./data:/opt/jekyll
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/bin/bash
|
||||
source /opt/jekyll/.env
|
||||
export AUTHOR_EMAIL=$AUTHOR_EMAIL
|
||||
export BLOG_NAME=$BLOG_NAME
|
||||
export BASE_URL=$BASE_URL
|
||||
|
Loading…
Reference in New Issue
Block a user