Skip to content

Commit

Permalink
fix: add deps for build progress
Browse files Browse the repository at this point in the history
  • Loading branch information
HalcyonAzure committed Oct 27, 2023
1 parent 26d9086 commit 8ebfb41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
FROM php:8.1 AS build
WORKDIR /build

# 安装必要的依赖
RUN apt-get update && \
apt-get install -y curl unzip && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN curl -OL https://github.com/lsky-org/lsky-pro/archive/refs/heads/master.zip \
&& unzip *.zip \
&& mv ./lsky-pro-master/* ./ \
Expand All @@ -11,6 +17,7 @@ RUN php -r "file_exists('.env') || copy('.env.example', '.env');" \
&& composer install

FROM php:8.1-apache

# 如果构建速度慢可以换源
# RUN sed -i -E "s@http://.*.debian.org@http://mirrors.cloud.tencent.com@g" /etc/apt/sources.list
# 安装相关拓展
Expand Down

0 comments on commit 8ebfb41

Please sign in to comment.