mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-05-15 04:27:34 +08:00
change docker CONTEXT
This commit is contained in:
@@ -4,7 +4,7 @@ FROM openresty/openresty:alpine
|
|||||||
RUN apk add --no-cache gettext bash curl openssl socat
|
RUN apk add --no-cache gettext bash curl openssl socat
|
||||||
|
|
||||||
# 拷贝 entrypoint
|
# 拷贝 entrypoint
|
||||||
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
|
COPY .docker/openresty/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
CMD ["/bin/sh", "/usr/local/bin/entrypoint.sh"]
|
CMD ["/bin/sh", "/usr/local/bin/entrypoint.sh"]
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
|
|||||||
ENV LOG_CHANNEL=stderr
|
ENV LOG_CHANNEL=stderr
|
||||||
ENV RUNNING_IN_DOCKER=1
|
ENV RUNNING_IN_DOCKER=1
|
||||||
|
|
||||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
COPY .docker/php/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT ["entrypoint.sh"]
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
php:
|
php:
|
||||||
build:
|
build:
|
||||||
context: ./.docker/php
|
dockerfile: .docker/php/Dockerfile
|
||||||
image: nexusphp_php
|
image: nexusphp_php
|
||||||
container_name: nexusphp-php
|
container_name: nexusphp-php
|
||||||
environment:
|
environment:
|
||||||
@@ -83,7 +83,7 @@ services:
|
|||||||
|
|
||||||
openresty:
|
openresty:
|
||||||
build:
|
build:
|
||||||
context: ./.docker/openresty
|
dockerfile: .docker/openresty/Dockerfile
|
||||||
container_name: nexusphp-openresty
|
container_name: nexusphp-openresty
|
||||||
environment:
|
environment:
|
||||||
NP_DOMAIN: ${NP_DOMAIN:-localhost}
|
NP_DOMAIN: ${NP_DOMAIN:-localhost}
|
||||||
|
|||||||
Reference in New Issue
Block a user