mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
35d4cb0e97
Go 1.26.8 supersedes the prior patch release, so every release builder and local toolchain guard must move together to prevent candidate artifacts from retaining an older compiler and runtime. Contract-Neutral: toolchain-only patch update; no product or runtime contract changed Change-source: pulse-maintainer
25 lines
893 B
Docker
25 lines
893 B
Docker
FROM golang:1.26.8@sha256:9d2f36f06329b2a141b9db99ffa32765cf695ee57b813ca29e245e8670bcbfff
|
|
|
|
# Set bash as default shell for features
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
# Install dev tools needed for hot-dev.sh
|
|
RUN apt-get update && apt-get install -y bash git make curl vim sudo lsof inotify-tools && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create non-root user
|
|
ARG USERNAME=vscode
|
|
ARG USER_UID=1000
|
|
ARG USER_GID=$USER_UID
|
|
|
|
RUN groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME -s /bin/bash && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME && chmod 0440 /etc/sudoers.d/$USERNAME
|
|
|
|
# Set up Go environment for non-root user
|
|
ENV GOPATH=/go
|
|
ENV PATH=$GOPATH/bin:$PATH
|
|
RUN mkdir -p $GOPATH/pkg $GOPATH/bin && chown -R $USERNAME:$USERNAME $GOPATH
|
|
|
|
USER $USERNAME
|
|
WORKDIR /workspace
|
|
|
|
CMD ["/bin/bash"]
|