# Copy startup script to notebook using custom image

**URL:** <https://discourse.jupyter.org/t/copy-startup-script-to-notebook-using-custom-image/17026>\
**Category:** Zero to JupyterHub on Kubernetes\
**Tags:** jupyterhub, help-wanted\
**Created:** [November 29, 2022, 7:26pm UTC](https://discourse.jupyter.org/t/copy-startup-script-to-notebook-using-custom-image/17026 "2022-11-29T19:26:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen\_Park](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/stephen_park/32/5976_2.png) [@Stephen\_Park](https://discourse.jupyter.org/u/Stephen_Park)\
**Post date:** [November 29, 2022, 7:26pm UTC](https://discourse.jupyter.org/t/copy-startup-script-to-notebook-using-custom-image/17026/1 "2022-11-29T19:26:11Z")

</div>

Hello, I am trying to copy a startup script to the /.ipython/profile\_default/startup/ directory and I am doing this through a dockerfile that builds a custom image. I’ve created a spawner profile list to launch different environments using different images through the kubespawner override function. If I create a pod that pulls that image, the directory is successfully created and the file is copied over, but when my notebook is created from jupyterhub, the files are not being copied over. I suspect it has something with the entrypoint of the image, but I am not sure. Any idea on how I can resolve this?

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [November 29, 2022, 11:13pm UTC](https://discourse.jupyter.org/t/copy-startup-script-to-notebook-using-custom-image/17026/2 "2022-11-29T23:13:54Z")

</div>

Hi! Can you show us your Z2JH configuration, and ideally your Dockerfile?
