21 lines
439 B
Docker
21 lines
439 B
Docker
FROM docker-dev.xyue.zip:8443/nginx-php-fpm:7.4
|
|
|
|
# 设置工作目录
|
|
WORKDIR /app
|
|
|
|
# 复制 admin_panel_backend 目录所有文件到容器的/app目录下
|
|
COPY . .
|
|
|
|
# Composer 安装
|
|
RUN composer install --no-dev --prefer-dist
|
|
|
|
# 增加执行权限
|
|
RUN chmod a+rwx /app/Applications/YourApp
|
|
|
|
# 暴露 Nginx 监听的端口
|
|
EXPOSE 1239
|
|
|
|
RUN chmod +x /app/start.sh
|
|
|
|
# CMD to execute startup script
|
|
CMD ["/app/start.sh"] |