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

This commit is contained in:
juniorbotelho 2023-02-10 22:33:39 -03:00
parent 816e892b29
commit e99e268ec9
1 changed files with 2 additions and 2 deletions

View File

@ -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"]