Commit 9f6cb339 authored by Artem Baranovskyi's avatar Artem Baranovskyi
Browse files

Image build is optimized.

parent 3df46523
Pipeline #10715 failed with stages
in 6 minutes and 53 seconds
...@@ -16,6 +16,18 @@ ENV PATH="/opt/myenv/bin:$PATH" ...@@ -16,6 +16,18 @@ ENV PATH="/opt/myenv/bin:$PATH"
WORKDIR /app WORKDIR /app
COPY . /app COPY . /app
RUN sudo docker system prune -a -f --volumes
RUN sudo docker container prune -f
RUN sudo docker network prune -f
RUN sudo docker image prune -a -f
RUN sudo docker builder prune -f
RUN sudo apt-get clean
RUN sudo rm -rf /var/lib/apt/lists/*
RUN sudo rm -rf /tmp/*
RUN sudo journalctl --vacuum-time=1s
RUN df -h
RUN sudo docker builder prune -f
# Setting permissions and cleaning # Setting permissions and cleaning
RUN chown -R www-data:www-data /app && chmod -R 755 /app RUN chown -R www-data:www-data /app && chmod -R 755 /app
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment