Skip to content

Commit

Permalink
Merge pull request #122 from docker-parfum/improve_dockerfile
Browse files Browse the repository at this point in the history
Improve Dockerfile to reduce image size
  • Loading branch information
TomWright committed Jan 11, 2023
2 parents 8e60a78 + ebdbb81 commit c4e03f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ WORKDIR /root
# copy the mermaidcli node package into the container and install
COPY ./mermaidcli/* ./

RUN npm install
RUN npm install && npm cache clean --force;

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update 2>/dev/null && \
Expand Down Expand Up @@ -65,7 +65,7 @@ RUN apt-get update 2>/dev/null && \
xdg-utils \
wget \
libxshmfence1 \
2>/dev/null
2>/dev/null && rm -rf /var/lib/apt/lists/*;

COPY --from=go /root/bin/app ./app

Expand Down

0 comments on commit c4e03f7

Please sign in to comment.