phiz-php-worker/Dockerfile

21 lines
439 B
Docker
Raw Permalink Normal View History

2024-10-08 11:54:47 +08:00
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
2024-10-08 11:54:47 +08:00
RUN chmod +x /app/start.sh
# CMD to execute startup script
CMD ["/app/start.sh"]