I have a dockerfile finishing with an entrypoint:
ENTRYPOINT ["/bin/bash" , "-c", "source /app/env.sh && printenv && python3 /app/script.py"]
And a yaml k8s CronJob:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: my_healthcheck
namespace: default
labels:
app: my_healthcheck
spec:
schedule: "30 8 * * 1-5"
jobTemplate:
spec:
backoffLimit: 5
template:
spec:
containers:
- name: pythonscript
image: xxx/pythonscript:latest
imagePullPolicy: IfNotPresent
command: [ <what do i put here> ]
restartPolicy: OnFailure
Inside "command", what command i need to put, to run the container ? thanks