Skip to content

Commit ee700e4

Browse files
committed
Fix github warnings
1. deprecated env var declaration style 2. CMD syntax recommended to use JSON args Signed-off-by: Robert Young <[email protected]>
1 parent 0c488db commit ee700e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN apt-get update && \
1717
wget \
1818
golang && \
1919
rm -rf /var/lib/apt/lists/*
20-
ENV RBENV_ROOT /usr/local/rbenv
20+
ENV RBENV_ROOT=/usr/local/rbenv
2121
RUN git clone https://github.com/rbenv/rbenv.git ${RBENV_ROOT} && \
2222
git clone https://github.com/rbenv/ruby-build.git ${RBENV_ROOT}/plugins/ruby-build
2323

@@ -45,4 +45,4 @@ RUN mkdir /site/
4545
WORKDIR /site/
4646
EXPOSE 4000
4747
# Note --incremental mode is ineffective on the Mac owing to https://github.com/containers/podman/issues/22343. Use force_regenerate.sh to trigger the incremental reload after changing the file on the host.
48-
CMD eval "$(rbenv init -)" && cp -r /css/_sass/bootstrap /site/_sass/ && bundle exec jekyll serve --host ${JEKYLL_SERVE_BIND} --incremental --disable-disk-cache --destination /tmp/site
48+
CMD [ "bash", "-c", "eval \"$(rbenv init -)\" && cp -r /css/_sass/bootstrap /site/_sass/ && bundle exec jekyll serve --host ${JEKYLL_SERVE_BIND} --incremental --disable-disk-cache --destination /tmp/site"]

0 commit comments

Comments
 (0)