dockerfile code
FROM ubuntu:20.04
RUN wget https://dl.google.com/go/go1.21.0.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.21.0.linux-amd64.tar.gz && \
export PATH=$PATH:/usr/local/go/bin && \
go version
COPY akamai-v1.5.6-linux386 .
RUN chmod +x akamai-v1.5.6-linux386 && \
mv akamai-v1.5.6-linux386 /usr/local/bin/akamai && \
apt-get update
RUN apt-get update && akamai install purge -y
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
i am installing the akamai cli and akamai purge package. i am getting following error-
=> ERROR [9/9] RUN apt-get update && akamai install purge -y 85.0s
------
> [9/9] RUN apt-get update && akamai install purge -y:
0.655 Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
0.865 Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
1.133 Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
2.375 Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
2.530 Fetched 114 kB in 2s (51.0 kB/s)
2.530 Reading package lists...
84.86 ERROR[0081] Package Is Not Available. Supported Packages Can Be Found Here: Https://Techdocs.Akamai.Com/Home/Page/Products-Tools-A-Z command=install
84.86 ERROR[0081] INSTALL ERROR: Package is not available. Supported packages can be found here: https://techdocs.akamai.com/home/page/products-tools-a-z command=install
84.86 Package is not available. Supported packages can be found here: https://techdocs.akamai.com/home/page/products-tools-a-z
------
Dockerfile:163
161 | # ENV PATH=/usr/local/bin/akamai:$PATH
162 | # RUN echo $PATH
163 | >>> RUN apt-get update && akamai install purge -y
164 |
165 | EXPOSE 22
ERROR: failed to solve: process "/bin/sh -c apt-get update && akamai install purge -y" did not complete successfully: exit code: 1
i am getting error on akamai install purge command. But same command is working if i comment it in dockerfile and use inside the container. error is showing that package is not available but when i checked package is available at given link
Looks like you want to have
akamai purgerunning on an Ubuntu Docker image.DockerfileAdding a configuration file will prevent you from being prompted about automatic upgrades when you first run
akamai. This is copied across in the second stage of the build.config