Skip to content

Commit c1f05f7

Browse files
observerwCopilot
andauthored
Update container/gopls/ContainerFile
Co-authored-by: Copilot <[email protected]>
1 parent b27e142 commit c1f05f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

container/gopls/ContainerFile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,9 @@ LABEL org.opencontainers.image.title="Gopls LSP" \
1616
WORKDIR /app
1717
COPY --from=builder /go/bin/gopls /usr/local/bin/gopls
1818

19+
RUN addgroup -g 1000 gopls && adduser -D -u 1000 -G gopls gopls
20+
1921
WORKDIR /workspace
22+
RUN mkdir -p /workspace && chown -R 1000:1000 /workspace
23+
USER 1000:1000
2024
ENTRYPOINT ["gopls", "serve"]

0 commit comments

Comments
 (0)