How to use a copy in Docker

Documentation on How to use a copy in Docker

Follow @donadoio

How to use a copy in Docker

The Copy Command

COPY is a dockerfile command that copies files from a local source location to a destination in the Docker container. A Dockerfile is a text file with instructions to set up a Docker container.

Usage

The general syntax of the COPY command is:

COPY <src> <dest>

Here, <src> and <dest> are file paths. <src> is the path to the source folder containing files to be copied. This option can be left empty to copy the contents of the current directory. The source of the files has to be a directory on the local computer.

<dest> is the destination of the COPY command inside the docker container. This is the path where files are to be copied.

Back to Docker for ft_server