E
E
EVOSandru62020-02-14 00:12:35
Docker
EVOSandru6, 2020-02-14 00:12:35

Why doesn't ADD work in dockerfile?

Good afternoon,

There is a certain structure:

docker/config/fonts.ini
docker/Docker

When trying to add this file to the container:

FROM node:11-slim
ADD ./conf/fonts.ini /etc/fonts/fonts.ini
WORKDIR /var/www


Error:

Step 1/3 : FROM node:11-slim
---> 4ffafe52a32a
Step 2/3 : ADD conf/fonts.ini /etc/fonts/fonts.ini
ERROR: Service 'node' failed to build: ADD failed : stat /var/lib/docker/tmp/docker-builder900812352/conf/fonts.ini: no such file or directory
Makefile:64: recipe for target 'docker-build' failed
make: *** [docker-build] Error 1


What could be the reason? Tried to slightly change the path to:

ADD conf/fonts.ini /etc/fonts/fonts.ini

The result did not change.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2020-02-14
@EVOSandru6

config /fonts.ini
ADD conf /fonts.ini

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question