Based on https://hub.docker.com/r/litespeedtech/openlitespeed I wanted to use lsphp80-dev / lsphp81-dev and therefore Created this dockerfile:
But I always get a 404 with line https://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh altough
- it exists when accessing within browser
- I can use wget on my host OS (also ubuntu)
So I only get the 404 within the docker build process
Full docker build output:
Code:
FROM litespeedtech/openlitespeed:1.7.16-lsphp80
WORKDIR /var/www/vhosts
RUN apt update
RUN apt install -y wget
RUN wget http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh
RUN bash enable_lst_debian_repo.sh
RUN apt install -y lsphp80-dev
- it exists when accessing within browser
- I can use wget on my host OS (also ubuntu)
So I only get the 404 within the docker build process
Full docker build output:
Code:
docker build . --no-cache
[+] Building 12.2s (8/10)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 373B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/litespeedtech/openlitespeed:1.7.16-lsphp80 1.2s
=> [1/7] FROM docker.io/litespeedtech/openlitespeed:1.7.16-lsphp80@sha256:3d4deeae05bc146d8217b68634f9bfa42802c2389929c00eec7d157c5e86901d 0.0s
=> CACHED [2/7] WORKDIR /var/www/vhosts 0.0s
=> [3/7] RUN apt update 7.1s
=> [4/7] RUN apt install -y wget 2.6s
=> ERROR [5/7] RUN wget http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh 0.9s
------
> [5/7] RUN wget http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh:
#8 0.574 --2023-01-24 12:33:45-- http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh
#8 0.574 Resolving rpms.litespeedtech.com (rpms.litespeedtech.com)... ::ffff:52.55.120.73, 52.55.120.73
#8 0.602 Connecting to rpms.litespeedtech.com (rpms.litespeedtech.com)|::ffff:52.55.120.73|:80... connected.
#8 0.604 HTTP request sent, awaiting response... 404 Not Found
#8 0.884 2023-01-24 12:33:46 ERROR 404: Not Found.
#8 0.884
------