mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
- Simplify Dockerfile: use golang:1.24 base, install Node via features - Add proper port forwarding for Pulse (7655 frontend, 7656 API) - Add Vue Volar extension for frontend development - Add start-pulse-dev.sh helper script for auto-starting dev server - Add FRONTEND_DEV_HOST to containerEnv for proper binding - Add .env.devcontainer to .gitignore (local override file) - Update frontend dependencies 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
819 B
Docker
25 lines
819 B
Docker
FROM golang:1.24
|
|
|
|
# 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"]
|