【发布时间】:2021-08-01 21:04:57
【问题描述】:
我一直在尝试为 .deb 文件编写 dockerfile。这是我到目前为止所写的:
FROM ubuntu:18.04 AS ubuntu
RUN apt-get update
WORKDIR /invisily
COPY . ./
USER root
RUN chmod +x a.deb && \
apt-get install a.deb
所有阶段都运行良好,但最后我收到一条错误消息:
Need to get 79.6 MB of archives.
After this operation, 296 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
The command '/bin/sh -c chmod +x a.deb && apt-get install a.deb' returned a non-zero code: 1
这可能是什么原因?
【问题讨论】:
标签: docker docker-compose dockerfile