0

I try to register with gitlab a image:

docker build -t registry.gitlab.com/xxx/xxx compose/base

But I get:

Step 4/7 : COPY ./requirements /requirements lstat requirements: no such file or directory

However build with compose work:

docker-compose -f dev.yml build python


services:
  python:
    build:
      context: .
      dockerfile: ./compose/base/Dockerfile

The file structure:

-Project/requirements -Project/compose/base

How I replicate what compose do?

1 Answer 1

1

Your problem is in docker build context, i suggest you try this:

docker build -t registry.gitlab.com/xxx/xxx -f compose/base/Dockerfile .
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.