diff --git a/Dockerfile b/Dockerfile index 9378fdc..8a0a9fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,13 +16,12 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* RUN if [ "$build_type" = "All" ]; then \ - apt-get update && apt-get install -y \ - openssh-server \ + apt-get install -y openssh-server \ && rm -rf /var/lib/apt/lists/* \ - && mkdir -p /var/run/sshd; \ + && mkdir -p /var/run/sshd \ && echo "mkdir -p /root/.ssh && ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa" >> /workspace/env_script.sh \ && echo "cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys" >> /workspace/env_script.sh \ - && echo "service ssh start" >> /workspace/env_script.sh; \ + && echo "service ssh start" >> /workspace/env_script.sh \ fi # Install PostgreSQL and MySQL @@ -77,5 +76,6 @@ RUN if [ "$build_type" = "All" ]; then \ CMD ["/bin/bash", "-c", ". /workspace/env_script.sh && /bin/bash"] # Example: -# docker rm gart0; docker image rm gart; docker build -t gart . +# docker rm gart0; docker image rm gart +# docker build -t gart . # docker run -it --name gart0 gart