Skip to content

Commit f6550e2

Browse files
authored
fix(golang): Add /config directory with ownership change (#1326)
Create /config directory and set ownership to apps user. **Description** <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> ⚒️ Fixes # <!--(issue)--> **⚙️ Type of change** - [ ] 🧰 New container/image - [ ] 🛠️ Update existing container/image - [ ] 🐛 Bugfix (Dockerfile, scripts, chart values) - [ ] 🔃 Refactor (no functional change) - [ ] ⚠️ Breaking change (image tag, chart API change) **🧪 How Has This Been Tested?** <!-- Explain how you verified the container/image works. Include steps to reproduce locally or in CI. --> - [ ] ✅ Built container locally - [ ] ✅ Ran container tests (unit/integration) - [ ] ✅ Verified image in staging environment - [ ] ✅ Checked container logs for errors **📃 Notes** <!-- Add any additional information like environment variables, optional args, or migration notes --> **✔️ Checklist:** - [ ] ⚖️ Changes follow the style guidelines of this project - [ ] 👀 Self-review completed - [ ] ✍️ Dockerfile and scripts are clear and accurate - [ ] 🔗 Internal references (base images) are correct - [ ] 🧪 Test instructions included - [ ] 🏷️ The PR title follows the convention: - `feat(page):` - `fix(content):` - `docs(site):` - `chore(site):` _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Signed-off-by: Alfred Göppel <43101280+alfi0812@users.noreply.github.com>
1 parent 07e7679 commit f6550e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/golang/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33

4-
FROM ghcr.io/trueforge-org/ubuntu:24.4.0@sha256:5348eb7725294e8090c15b7b495e517f82f4b31497d3bb9de71bbe37476e7454 as build
4+
FROM ghcr.io/trueforge-org/ubuntu:24.4.0@sha256:5348eb7725294e8090c15b7b495e517f82f4b31497d3bb9de71bbe37476e7454 AS build
55

66
ENV PATH=/usr/local/go/bin:$PATH
77

@@ -40,6 +40,9 @@ ENV PATH=/usr/local/go/bin:$GOPATH/bin:$PATH
4040

4141
COPY --from=build --link /target/ /
4242

43+
# Fix /config permission issues
44+
RUN install -d -o apps -g apps /config
45+
4346
USER apps
4447

4548
WORKDIR /config

0 commit comments

Comments
 (0)