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 /app/jekyll
|
||||||
RUN mkdir -p -m 0755 /opt/jekyll
|
RUN mkdir -p -m 0755 /opt/jekyll
|
||||||
COPY ./entrypoint.sh /opt/jekyll
|
COPY ./entrypoint.sh /opt/jekyll
|
||||||
VOLUME $PWD/data:/opt/jekyll
|
|
||||||
RUN chmod +x /opt/jekyll/ && \
|
RUN chmod +x /opt/jekyll/ && \
|
||||||
chown -R 1000:1000 /opt/jekyll && \
|
chown -R 1000:1000 /opt/jekyll && \
|
||||||
chown -R 1000:1000 /app
|
chown -R 1000:1000 /app
|
||||||
|
@ -12,4 +12,3 @@ services:
|
|||||||
- ${WWW_PORT:-4000}:4000
|
- ${WWW_PORT:-4000}:4000
|
||||||
volumes:
|
volumes:
|
||||||
- ./jekyll:/app/jekyll
|
- ./jekyll:/app/jekyll
|
||||||
- ./data:/opt/jekyll
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source /opt/jekyll/.env
|
|
||||||
export AUTHOR_EMAIL=$AUTHOR_EMAIL
|
export AUTHOR_EMAIL=$AUTHOR_EMAIL
|
||||||
export BLOG_NAME=$BLOG_NAME
|
export BLOG_NAME=$BLOG_NAME
|
||||||
export BASE_URL=$BASE_URL
|
export BASE_URL=$BASE_URL
|
||||||
|
Loading…
Reference in New Issue
Block a user