bash – /bin/sh:apt-get:找不到

前端之家收集整理的这篇文章主要介绍了bash – /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,we’ll 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"]

教程已经过时,所以我无法成功。你可以帮我吗?

image you’re usingAlpine based,所以你不能使用apt-get,因为它是Ubuntu的包管理器。

解决这个问题,请使用:

apk更新和apk添加

原文链接:https://www.f2er.com/bash/387207.html

猜你在找的Bash相关文章