mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-05-14 20:17:35 +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
|
||||
|
||||
# 拷贝 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
|
||||
|
||||
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 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
|
||||
|
||||
ENTRYPOINT ["entrypoint.sh"]
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
php:
|
||||
build:
|
||||
context: ./.docker/php
|
||||
dockerfile: .docker/php/Dockerfile
|
||||
image: nexusphp_php
|
||||
container_name: nexusphp-php
|
||||
environment:
|
||||
@@ -83,7 +83,7 @@ services:
|
||||
|
||||
openresty:
|
||||
build:
|
||||
context: ./.docker/openresty
|
||||
dockerfile: .docker/openresty/Dockerfile
|
||||
container_name: nexusphp-openresty
|
||||
environment:
|
||||
NP_DOMAIN: ${NP_DOMAIN:-localhost}
|
||||
|
||||
Reference in New Issue
Block a user