# The name tells Okteto to replace the function named 'hello' with the dev environment
name: hello                  
image: okteto/golang-middleware-template:0.1.1
command:
- bash
workdir: /home/app
mountpath: /home/app/function
securityContext:
  # the user and group that OpenFaaS functions run as
  runAsUser:  12000
  runAsGroup: 12000
  fsGroup:    12000
  capabilities:
    add:
    # enables us to run the debugger inside the pod
    - SYS_PTRACE
environment:
  # overrides the one set by openfaas, enabling build and run
  - fprocess=go run /home/app/main.go
forward:
- 2345:2345