diff --git a/README.md b/README.md index 72c6ba31..1d4c0e33 100644 --- a/README.md +++ b/README.md @@ -136,10 +136,18 @@ docker build --platform linux/amd64 -t local_image:v1 -f images/Dockerfile . Then reference the image name and tag in the `.env` file of your OpenHexa app : -``` +```dotenv DEFAULT_WORKSPACE_IMAGE=local_image:v1 ``` +Or you can set the following in your `workspace.yaml` configuration file in your pipeline directory: + +```yaml +env: + WORKSPACE_DOCKER_IMAGE: local_image:v1 +``` + + ### Running the tests You can run the tests using pytest: diff --git a/images/Dockerfile b/images/Dockerfile index 2e2beac0..38d4dff2 100644 --- a/images/Dockerfile +++ b/images/Dockerfile @@ -2,10 +2,10 @@ FROM blsq/openhexa-base-environment:latest USER root -WORKDIR /app -COPY . /app +WORKDIR /home/hexa +COPY . /home/hexa RUN pip install build RUN python -m build . -RUN pip install --no-cache-dir /app/dist/*.tar.gz && rm -rf /app/dist/*.tar.gz \ No newline at end of file +RUN pip install --no-cache-dir /home/hexa/dist/*.tar.gz && rm -rf /home/hexa/dist/*.tar.gz \ No newline at end of file