mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04:00
chore: fix wrong folders path and incorrect 'cache clean' command from apk
This commit is contained in:
parent
816e892b29
commit
e99e268ec9
1 changed files with 2 additions and 2 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Reference in a new issue