Browse Source

fix(docker): 修复Dockerfile中 echo引起的sh和bash换行兼容问题

pull/5231/head
ibuler 4 years ago committed by 老广
parent
commit
ddbbc8df17
  1. 2
      Dockerfile

2
Dockerfile

@ -34,7 +34,7 @@ RUN pip install --upgrade pip==20.2.4 setuptools==49.6.0 wheel==0.34.2 -i ${PIP_
COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver
RUN mkdir -p /root/.ssh/ \
&& echo -e "Host *\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile /dev/null" > /root/.ssh/config
&& echo "Host *\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile /dev/null" > /root/.ssh/config
RUN echo > config.yml
VOLUME /opt/jumpserver/data

Loading…
Cancel
Save