0

I am trying to create an Azure pipeline configuration where the pipeline uses my local Dockerfile to get the correct image.

I have the following python package structure

project
│  
└───.azurepipelines
│   │   azure-pipelines.yml
│  
└───.devcontainer
    │   devcontainer.json
    │   Dockerfile

I have found some related threads on the subject, but I don't quite understand how to achieve what I want. I want the rest of the steps in the pipe to be performed within the container. Do you have any suggestions?

1 Answer 1

0

You can specify a build and point to a specific docker file with docker-compose.

Here is an example of that. https://stackoverflow.com/a/50230608/37759

web:
    build:
      dockerfile: Dockerfile-alpine
      context: ./web
    ports:
      - 8099:80
    depends_on:
      - database **strong text**

Note the build command along with dockerfile parameter. It says, build project web using dockerfile Dockerfile-alpine

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.