# Conda, pip or something else for building containers

**URL:** <https://discourse.jupyter.org/t/conda-pip-or-something-else-for-building-containers/23047>\
**Category:** Zero to JupyterHub on Kubernetes\
**Created:** [December 22, 2023, 10:42am UTC](https://discourse.jupyter.org/t/conda-pip-or-something-else-for-building-containers/23047 "2023-12-22T10:42:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hiroyuki-sato](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/hiroyuki-sato/32/10809_2.png) [@hiroyuki-sato](https://discourse.jupyter.org/u/hiroyuki-sato)\
**Post date:** [December 22, 2023, 12:21pm UTC](https://discourse.jupyter.org/t/conda-pip-or-something-else-for-building-containers/23047/2 "2023-12-22T12:21:17Z")

</div>

Hello, @Roy_Dragseth

I’m creating a custom image using below `Dockerfile`  
This image based on the [tensorflow-notebook](https://github.com/jupyter/docker-stacks/blob/1494233e27cdc70e3766ea2518e7153ee425fc4f/images/tensorflow-notebook/Dockerfile) image.

```auto
FROM quay.io/jupyter/tensorflow-notebook

COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt && \
    fix-permissions "${CONDA_DIR}" && \
    fix-permissions "/home/${NB_USER}"

COPY overrides.json ${CONDA_DIR}/share/jupyter/lab/settings/overrides.json

```

This link may also help.

> [@Custom Z2JH image creation using jupyter-repo2docker](https://discourse.jupyter.org/t/custom-z2jh-image-creation-using-jupyter-repo2docker/22054/4):
>
> If you want to start from jupyter/base-notebook try following these instructions to build your own image without repo2docker: [https://jupyter-docker-stacks.readthedocs.io/en/latest/using/recipes.html#using-mamba-install-recommended-or-pip-install-in-a-child-docker-image](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/recipes.html#using-mamba-install-recommended-or-pip-install-in-a-child-docker-image)

---

_[View the full topic](https://discourse.jupyter.org/t/conda-pip-or-something-else-for-building-containers/23047)._
