Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# .env
# Global environment variables for Docker + Justfile

# Git commit hash (short), fallback to 'latest'
GIT_COMMIT=def6e21

# Default UID/GID for dev container (use host user's UID/GID)
BUILD_UID=1000
BUILD_GID=1000
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,11 @@ RUN apt-get update && apt-get install -y \
# Verify C++20 support
RUN clang++ --version && cmake --version

# Create builder user with host UID/GID for permission compatibility
RUN groupadd -g ${BUILD_GID} builder 2>/dev/null || true && \
useradd -m -u ${BUILD_UID} -g ${BUILD_GID} builder && \
mkdir -p /workspace && \
chown -R builder:builder /workspace
# Create workspace directory with proper permissions
RUN mkdir -p /workspace && \
chmod 755 /workspace

# Switch to builder user
USER builder

# Set working directory (now owned by builder)
# Set working directory
WORKDIR /workspace

# Copy project files
Expand Down Expand Up @@ -157,4 +152,4 @@ WORKDIR /workspace
# Keep the build directory
# This stage is for development with mounted volumes

CMD ["/bin/bash"]
CMD ["/bin/bash"]
Loading
Loading