Skip to content
Open
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
17 changes: 17 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"build": {
"dockerfile": "../Dockerfile"
},
"overrideCommand": false,
"runArgs": ["--use-api-socket", "--network=host"],
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-docker",
"docker.docker",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github"
]
}
}
}
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# renovate: datasource=docker depName=ghcr.io/containerbase/base
ARG CONTAINERBASE_VERSION=14.6.8

FROM ghcr.io/containerbase/base:${CONTAINERBASE_VERSION} as containerbase
FROM ghcr.io/containerbase/base:${CONTAINERBASE_VERSION} AS containerbase

FROM ghcr.io/containerbase/ubuntu:24.04@sha256:186072bba1b2f436cbb91ef2567abca677337cfc786c86e107d25b7072feef0c

Expand All @@ -19,9 +19,6 @@ ARG PRIMARY_GROUP_ID=1000
ENV BASH_ENV=/usr/local/etc/env ENV=/usr/local/etc/env
SHELL ["/bin/bash" , "-c"]

# This entry point ensures that dumb-init is run
ENTRYPOINT [ "docker-entrypoint.sh" ]

# Set up containerbase
COPY --from=containerbase /usr/local/sbin/ /usr/local/sbin/
COPY --from=containerbase /usr/local/containerbase/ /usr/local/containerbase/
Expand Down Expand Up @@ -70,5 +67,13 @@ RUN install-tool pnpm 10.32.1
# renovate: datasource=github-releases packageName=containerbase/python-prebuild
RUN install-tool python 3.14.3

# renovate: datasource=github-releases packageName=felipecrs/fixdockergid
ARG FIXDOCKERGID_VERSION=0.8.1
ARG USERNAME=$USER_NAME
RUN curl -fsSL "https://github.com/felipecrs/fixdockergid/raw/v${FIXDOCKERGID_VERSION}/install.sh" | sh -

# This entry point ensures that dumb-init and fixdockergid is run
ENTRYPOINT [ "docker-entrypoint.sh", "fixdockergid" ]
CMD [ "sleep", "infinity" ]

USER $USER_NAME
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Commits to `main` branch are automatically build and published.

This image allows `sudo` without password.
It's setting all directiories as safe for git.
Also supports docker-on-docker when ran with `--use-api-socket` flag.

Additional installed packages:

Expand Down
Loading