Okteto Manifest: deploy Dockerfile

I want to take advantage of the power of okteto to let me deploy Kubernetes resources from a Dockerfile. I can do this in the dev section but I couldn’t find something in the docs regarding the deploy section

My manifest looks like this

name: docs

build:
  docs:
    context: .

deploy:
  commands:
    - name: Deploy
      command: echo 'Replace this line with the proper 'helm' or 'kubectl' commands to deploy your development environment'

dev:
  docs:
    image: ${OKTETO_BUILD_DOCS_IMAGE}
    sync:
      - .:/app
    workdir: /app
    command: "yarn start"
    autocreate: true
    forward:
      - 8080:8080

Hey there,

Have you checked the deploy section here: Okteto Manifest | Okteto Documentation ?

Thanks,
The Okteto Team

1 Like

You must define your app with a known format like kubernetes manifests, helm, or compose.
Okteto doesn’t support Dockerfile deployments

1 Like