OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Update Dockerfile

Open jtac opened this issue 1 year ago • 2 comments

creating the workspace directory after switching user to fix permission errors https://github.com/OpenDevin/OpenDevin/issues/1560

jtac avatar May 16 '24 14:05 jtac

@jtac the workflow failed, can you take a look?

> Dockerfile:56
> --------------------
>   54 |     RUN chown -R opendevin:app /app && chmod -R 770 /app
>   55 |     USER opendevin
>   56 | >>> RUN mkdir -p $WORKSPACE_BASE
>   57 |     
>   58 |     ENV VIRTUAL_ENV=/app/.venv \
> --------------------
> ERROR: failed to solve: process "/bin/sh -c mkdir -p $WORKSPACE_BASE" did not complete successfully: exit code: 1
> Error: Process completed with exit code 1.

iFurySt avatar May 16 '24 14:05 iFurySt

User probably doesn't have permission to edit the /opt dir. Maybe we should create it as root, then chown it?

rbren avatar May 16 '24 16:05 rbren

I moved the creation back to root and instead added a line to assign the directory to the user

jtac avatar May 17 '24 08:05 jtac