Подтвердить что ты не робот

/bin/sh: apt-get: не найден

Я пытаюсь изменить dockerFile для работы с aspell. У меня есть сценарий bash, который я хочу обернуть в док-станцию

Step 4: Wrap the script in a Docker container.

The sample SDK we downloaded earlier contains an example of an action wrapped in a Docker container. In particular, the sample SDK includes a Dockerfile that builds the C program in client/example.c and installs the binary as /blackbox/client/action .

The key line in the sample Dockerfile is:

RUN cd /blackbox/client; gcc -o action example.c

Instead of compiling example.c and installing the binary as an action, well change the Dockerfile to install aspell into the Linux environment, and then install our action.sh script as the executable action command.

To do so, we delete the RUN command above, and insert the following commands into the Dockerfile:

RUN apt-get install -y aspell
RUN rm -f /blackbox/client/action
ADD action.sh /blackbox/client/action

Я пытаюсь сделать это на dockerfile ниже

# Dockerfile for example whisk docker action
FROM openwhisk/dockerskeleton

ENV FLASK_PROXY_PORT 8080

### Add source file(s)
ADD example.c /action/example.c

RUN sudo apt-get install -y aspell
RUN rm -f /blackbox/client/action
ADD action.sh /blackbox/client/action



CMD ["/home/huseyin/bin", "-c", "cd actionProxy && python -u actionproxy.py"]

учебник устарел, поэтому я не могу это сделать. Вы можете мне помочь?

4b9b3361

Ответ 2

Если при создании образа вы заглядываете внутрь dockerfile, добавьте эту строку:

RUN apk add --update yourPackageName