# Failed to build ui-server image

**URL:** <https://community.temporal.io/t/failed-to-build-ui-server-image/6429>\
**Category:** Server Deployment\
**Tags:** web-ui\
**Created:** [November 8, 2022, 2:09am UTC](https://community.temporal.io/t/failed-to-build-ui-server-image/6429 "2022-11-08T02:09:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![whitecrow](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@whitecrow](https://community.temporal.io/u/whitecrow)\
**Post date:** [November 8, 2022, 2:09am UTC](https://community.temporal.io/t/failed-to-build-ui-server-image/6429/1 "2022-11-08T02:09:11Z")

</div>

I tried to build my own image of temporal ui for serving it under a sub path, following the direction here:  
[serve-ui-under-a-sub-path](https://github.com/temporalio/ui-server/tree/main/docker#serve-ui-under-a-sub-path)  
But met errors below:

```auto
Step 13/23 : RUN make install-utils install-ui build-ui build-server
 ---> Running in c26e3bd354e6
make: go: Operation not permitted
make: /bin/sh: Operation not permitted
make: *** [Makefile:80: install-utils] Error 127
The command '/bin/sh -c make install-utils install-ui build-ui build-server' returned a non-zero code: 2

```

Is anything missed?  
PS: I built on main branch.

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [November 8, 2022, 5:22pm UTC](https://community.temporal.io/t/failed-to-build-ui-server-image/6429/3 "2022-11-08T17:22:17Z")

</div>

Hello @whitecrow

I just tried it from scratch (starting by cloning the repo) and worked for me. I am not why you are having this issue.

Do you see any other error messages?

---

<div class="post-metadata">

**Author:** ![whitecrow](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@whitecrow](https://community.temporal.io/u/whitecrow)\
**Post date:** [November 9, 2022, 1:23pm UTC](https://community.temporal.io/t/failed-to-build-ui-server-image/6429/4 "2022-11-09T13:23:15Z")

</div>

I searched on Google, and found the suggestions below([Docker build failed for reason: "make: /bin/sh: Operation not permitted" · Issue #49 · Mellanox/k8s-rdma-shared-dev-plugin · GitHub](https://github.com/Mellanox/k8s-rdma-shared-dev-plugin/issues/49)):

1. Upgrade docker to version 20.10.0 or later as per [Alpine 3.14.0 Release Notes](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2)
2. Or modify the image used for compile code from `golang: alpine` to `golang: Alpine3.13` in the Dockerfile in your own development environment.

I do not know if ui-server depends on alpine and anyway I cannot change it, so it seems I should follow method 1.  
I’ll have another try.

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [November 10, 2022, 8:58am UTC](https://community.temporal.io/t/failed-to-build-ui-server-image/6429/5 "2022-11-10T08:58:26Z")

</div>

OK @whitecrow ,

let us know if it works

---

<div class="post-metadata">

**Author:** ![whitecrow](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@whitecrow](https://community.temporal.io/u/whitecrow)\
**Post date:** [November 10, 2022, 9:20am UTC](https://community.temporal.io/t/failed-to-build-ui-server-image/6429/6 "2022-11-10T09:20:30Z")

</div>

@antonio.perez Yes, it works.  
But I still think we should make this " [serve-ui-under-a-sub-path](https://github.com/temporalio/ui-server/tree/main/docker#serve-ui-under-a-sub-path)" feature directly configurable on deployment, instead of on packaging. It took me a week over to download various dependencies and solve this issue.  
As far as I know, some projects like Grafana supports it. That would save users a lot of trouble on building and managing their own images, especially considering we need to support both AMD and ARM platforms.

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [November 10, 2022, 9:54am UTC](https://community.temporal.io/t/failed-to-build-ui-server-image/6429/7 "2022-11-10T09:54:21Z")

</div>

@whitecrow

We aim to make this as simple as possible for everyone. Please feel free to comment here [Support url rewrite for embed mode · Issue #911 · temporalio/ui · GitHub](https://github.com/temporalio/ui/issues/911), that will help the team to prioritize.

---

<div class="post-metadata">

**Author:** ![whitecrow](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@whitecrow](https://community.temporal.io/u/whitecrow)\
**Post date:** [November 10, 2022, 11:15am UTC](https://community.temporal.io/t/failed-to-build-ui-server-image/6429/8 "2022-11-10T11:15:50Z")

</div>

@antonio.perez This issue is submitted by me 😅

---

<div class="post-metadata">

**Author:** ![whitecrow](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@whitecrow](https://community.temporal.io/u/whitecrow)\
**Post date:** [November 10, 2022, 11:36am UTC](https://community.temporal.io/t/failed-to-build-ui-server-image/6429/9 "2022-11-10T11:36:18Z")

</div>

@antonio.perez  
I think we have had plenty of feedback under this issue of ui-server:[Support serving UI under subpaths](https://github.com/temporalio/ui/issues/576)

 ![Screen Shot 2022-11-10 at 7.28.43 PM](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/0/05748439b4d4b988cb35aa57e8fd87ffcfe994ed.png)

14 people vote for it, and several give their comments.  
But unfortunately, we still end up with an image rebuild.

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [November 10, 2022, 12:11pm UTC](https://community.temporal.io/t/failed-to-build-ui-server-image/6429/10 "2022-11-10T12:11:09Z")

</div>

I think that we are waiting for this [Support serving UI under subpaths · Issue #576 · temporalio/ui · GitHub](https://github.com/temporalio/ui/issues/576#issuecomment-1248282559)

Maybe @Ruslan can provide more information
