0

我正在尝试在 amd64/python:3.7-slim-buster docker 映像中安装 XAMPP 服务器,但它卡住了

这是我的码头文件:

FROM amd64/python:3.7-slim-buster

WORKDIR /app

COPY requirements.txt ./

RUN apt update && apt install wget -y
RUN wget https://www.apachefriends.org/xampp-files/7.1.10/xampp-linux-x64-7.1.10-0-installer.run && chmod +x xampp-linux-x64-7.1.10-0-installer.run
RUN ./xampp-linux-x64-7.1.10-0-installer.run 

RUN pip install -r requirements.txt

COPY . .

EXPOSE 8080

CMD [ "python3", "-u", "./main.py" ]

这是输出:

 => [internal] load build definition from Dockerfile.amd64                                                                                                                  0.0s
 => => transferring dockerfile: 454B                                                                                                                                        0.0s
 => [internal] load .dockerignore                                                                                                                                           0.0s
 => => transferring context: 2B                                                                                                                                             0.0s
 => [internal] load metadata for docker.io/amd64/python:3.7-slim-buster                                                                                                     2.3s
 => [1/8] FROM docker.io/amd64/python:3.7-slim-buster@sha256:d26c2c071853c7cb94b77148c38c3eb147b890c26d7af6a983b2e90bb620a2e0                                               0.0s
 => [internal] load build context                                                                                                                                           0.0s
 => => transferring context: 994B                                                                                                                                           0.0s
 => CACHED [2/8] WORKDIR /app                                                                                                                                               0.0s
 => CACHED [3/8] COPY requirements.txt ./                                                                                                                                   0.0s
 => CACHED [4/8] RUN apt update && apt install wget -y                                                                                                                      0.0s
 => CACHED [5/8] RUN wget https://www.apachefriends.org/xampp-files/7.1.10/xampp-linux-x64-7.1.10-0-installer.run && chmod +x xampp-linux-x64-7.1.10-0-installer.run        0.0s
 => [6/8] RUN ./xampp-linux-x64-7.1.10-0-installer.run                                                                                                                    189.9s
 => => # Please wait while Setup installs XAMPP on your computer.                                                                                                               
 => => #  Installing                                                                                                                                                            
 => => #  0% ______________ 50% ______________ 100%                                                                                                                             
 => => #  #########################################                                                                                                                             
 => => # ----------------------------------------------------------------------------                                                                                           
 => => # Setup has finished installing XAMPP on your computer.                                                                                                                   

它从不执行下一个命令并关闭构建文件,如何解决?

我正在参考:https ://linoxide.com/install-xampp-stack-ubuntu-16-04-terminal/

有人有类似的问题:https ://community.apachefriends.org/viewtopic.php?p=260131&sid=60f4bdb90c386d79a3eac02212185565

4

0 回答 0