You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ docker build .
Sending build context to Docker daemon 86.15MB
Step 1/2 : FROM alpine AS dev
---> 7328f6f8b418
Step 2/2 : COPY --from=dev
COPY requires at least two arguments
As can be seen above, a COPY instruction requires two arguments for it to be a valid. However, with the use of the --from flag, an error complaining about COPY requiring two arguments may appear even if you do indeed have two arguments.
FROM alpine AS dev
COPY --from=dev .
$ docker build .
Sending build context to Docker daemon 86.15MB
Step 1/2 : FROM alpine AS dev
---> 7328f6f8b418
Step 2/2 : COPY --from=dev .
COPY requires at least two arguments
The text was updated successfully, but these errors were encountered:
As can be seen above, a
COPY
instruction requires two arguments for it to be a valid. However, with the use of the--from
flag, an error complaining aboutCOPY
requiring two arguments may appear even if you do indeed have two arguments.The text was updated successfully, but these errors were encountered: