Browse Source

chore: fix wrong folders path and incorrect 'cache clean' command from apk

juniorbotelho 2 years ago
parent
commit
e99e268ec9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -38,8 +38,8 @@ RUN   chmod u+x "/docker/scripts/entrypoint.sh" &&\
 RUN   apk update; apk add zip --no-cache &&\
       rm -rf .git; mkdir -p "tmp/zip" &&\
       zip -r "tmp/zip/librex.zip" . -x "./scripts/**\*" "./Dockerfile\*" &&\
-      find -maxdepth 1 ! -name "scripts/" ! -name "tmp/" ! -name "./" -exec rm -rv {} \; &&\
-      apk del -r zip; apk cache clean;
+      find -maxdepth 1 ! -name "scripts" ! -name "tmp" ! -name "." -exec rm -rv {} \; &&\
+      apk del -r zip;
 
 # Configures the container to be run as an executable.
 ENTRYPOINT ["/bin/sh", "-c", "/docker/scripts/entrypoint.sh"]