The Dockerfile causes the error.
Error response from daemon: dockerfile parse error line 4: COPY requires at least two arguments, but only one was provided. Destination could not be determined.
Is it because COPY command cannot split into multiple lines? What is the way to split into multiple lines then? There are examples for RUN command using \ && but not sure of COPY.
Dockerfile
FROM python:3.7-slim
WORKDIR /app
COPY [
"requirements.txt",
"serving/main.py",
"."
]
RUN pip install --upgrade -r requirements.txt
ENTRYPOINT ["python"]
CMD ["/app/main.py"]
I can put into one line but it is not readable.
COPY [ "requirements.txt", "serving/main.py", "training/simple_linear_regr_utils.py", "training/simple_linear_regr.py", "."]