|
@@ -1,6 +1,8 @@
|
|
|
-FROM docker:20.10-cli
|
|
|
+FROM docker:20.10
|
|
|
WORKDIR "/home/librex"
|
|
|
|
|
|
+VOLUME [ "/var/run/docker.sock" ]
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -80,13 +82,10 @@ RUN chmod u+x "scripts/entrypoint.sh" &&\
|
|
|
|
|
|
|
|
|
RUN apk update; apk add zip abuild-rootbld --no-cache &&\
|
|
|
- rm -rf .git; mkdir -p "tmp/zip" &&\
|
|
|
+ rm -rf .git; mkdir -p "tmp/zip"; mkdir -p "scripts/tmp" &&\
|
|
|
zip -r "tmp/zip/librex.zip" . -x "scripts/**\*" "Dockerfile\*" &&\
|
|
|
find -maxdepth 1 ! -name "scripts" ! -name "tmp" ! -name "templates" ! -name "." -exec rm -rv {} \; &&\
|
|
|
sh -c 'scripts/prepare.sh' && apk del -r zip abuild-rootbld
|
|
|
|
|
|
-RUN docker build --no-cache -t 'nginx:latest' scripts/nginx/nginx.dockerfile &&\
|
|
|
- docker build --no-cache -t 'php:latest' scripts/php/php.dockerfile
|
|
|
-
|
|
|
|
|
|
-ENTRYPOINT ["/bin/sh", "-c", "scripts/entrypoint.sh"]
|
|
|
+ENTRYPOINT ["/bin/sh", "-c", "scripts/entrypoint.sh nginx php"]
|