change docker CONTEXT

This commit is contained in:
xiaomlove
2026-04-28 03:04:51 +07:00
parent 1372776ba1
commit f823dc191a
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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"]
+1 -1
View File
@@ -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
View File
@@ -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}