Cleanup Docker clean steps
This commit is contained in:
@@ -58,10 +58,10 @@ RUN apt-get update && apt-get install -y \
|
||||
# 4. Copy files over
|
||||
|
||||
# 5. Cleanup
|
||||
RUN apt-get autoremove -y --purge && apt-get autoclean
|
||||
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
RUN rm -rf /tmp/*
|
||||
RUN apt-get autoremove -yqq --purge \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /tmp/*
|
||||
|
||||
# 6. Expose Port and define the command used to run the app
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user