gliderlabs/docker-alpine

building docker compose in VM Ubuntu

niloufar07 opened this issue · 0 comments

this the content of my docker file FROM nginx:1-alpine

RUN apk add --no-cache openssl inotify-tools

WORKDIR /etc/nginx/

ADD nginx.conf.envsubst nginx.https.available.conf.envsubst ./
ADD geonode.conf.envsubst ./sites-enabled/

ADD docker-autoreload.sh docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
RUN chmod +x /docker-autoreload.sh
RUN chmod +x /docker-entrypoint.sh

CMD ["nginx", "-g", "daemon off;"] when i run the command build docker compose i face this error: ERROR [2/8] RUN apk add --no-cache openssl inotify-tools 196.0s

[2/8] RUN apk add --no-cache openssl inotify-tools:
187.6 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
192.6 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.18/main: temporary error (try again later)
192.6 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
195.7 ERROR: unable to select packages:
195.7 inotify-tools (no such package):
195.7 required by: world[inotify-tools]
195.7 openssl (no such package):
195.7 required by: world[openssl]


Dockerfile:3

1 | FROM nginx:1-alpine
2 |
3 | >>> RUN apk add --no-cache openssl inotify-tools
4 |
5 | WORKDIR /etc/nginx/

ERROR: failed to solve: process "/bin/sh -c apk add --no-cache openssl inotify-tools" did not complete successfully: exit code: 2
ERROR: Service 'geonode' failed to build : Build failed I am not professional and it is a project of PhD which i have to done so i need a little bit info on the steps to solve the problem.