Merge pull request #122 from docker-parfum/improve_dockerfile

Improve Dockerfile to reduce image size
This commit is contained in:
Tom Wright 2023-01-11 12:17:13 +00:00 committed by GitHub
commit c4e03f7d41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ WORKDIR /root
# copy the mermaidcli node package into the container and install # copy the mermaidcli node package into the container and install
COPY ./mermaidcli/* ./ COPY ./mermaidcli/* ./
RUN npm install RUN npm install && npm cache clean --force;
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update 2>/dev/null && \ RUN apt-get update 2>/dev/null && \
@ -65,7 +65,7 @@ RUN apt-get update 2>/dev/null && \
xdg-utils \ xdg-utils \
wget \ wget \
libxshmfence1 \ libxshmfence1 \
2>/dev/null 2>/dev/null && rm -rf /var/lib/apt/lists/*;
COPY --from=go /root/bin/app ./app COPY --from=go /root/bin/app ./app