mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
ghost: replace gosu with su-exec
This commit is contained in:
parent
fcc2cde895
commit
b53ed57ee6
@ -12,9 +12,9 @@ ENV GHOST_NODE_VERSION_CHECK=false \
|
|||||||
HIGHLIGHTER_COLOR=light \
|
HIGHLIGHTER_COLOR=light \
|
||||||
CUSTOM_SMTP=False \
|
CUSTOM_SMTP=False \
|
||||||
SMTP_HOST=mail.domain.tld \
|
SMTP_HOST=mail.domain.tld \
|
||||||
SMTP_PASS=12345 \
|
SMTP_PASS=123456 \
|
||||||
SMTP_USER=user \
|
SMTP_USER=user \
|
||||||
SMTP_PORT=666 \
|
SMTP_PORT=587 \
|
||||||
SMTP_SENDER_MAIL=user@domain.tld \
|
SMTP_SENDER_MAIL=user@domain.tld \
|
||||||
SMTP_SENDER_NAME=Ghost \
|
SMTP_SENDER_NAME=Ghost \
|
||||||
ENABLE_ISSO=False \
|
ENABLE_ISSO=False \
|
||||||
@ -26,14 +26,13 @@ ENV GHOST_NODE_VERSION_CHECK=false \
|
|||||||
|
|
||||||
VOLUME /ghost/content
|
VOLUME /ghost/content
|
||||||
|
|
||||||
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
||||||
&& echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
|
||||||
&& apk -U add \
|
&& apk -U add \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
bash \
|
bash \
|
||||||
grep \
|
grep \
|
||||||
tini@commuedge \
|
tini@commuedge \
|
||||||
gosu@testing \
|
su-exec \
|
||||||
&& wget -q https://ghost.org/zip/ghost-$VERSION.zip -P /tmp \
|
&& wget -q https://ghost.org/zip/ghost-$VERSION.zip -P /tmp \
|
||||||
&& unzip -q /tmp/ghost-$VERSION.zip -d /ghost \
|
&& unzip -q /tmp/ghost-$VERSION.zip -d /ghost \
|
||||||
&& cd /ghost \
|
&& cd /ghost \
|
||||||
|
@ -55,4 +55,4 @@ if [ "$SYNTAX_HIGHLIGHTING" == "True" ] && [ ! -f /ghost/content/themes/casper/a
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R $UID:$GID /ghost && cd /ghost
|
chown -R $UID:$GID /ghost && cd /ghost
|
||||||
gosu $UID:$GID npm start --production
|
su-exec $UID:$GID npm start --production
|
||||||
|
Loading…
x
Reference in New Issue
Block a user