Initial commit
This commit is contained in:
parent
affc8c8139
commit
b6da5e6eb0
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
FROM node:20-bookworm
|
||||||
|
|
||||||
|
RUN useradd --create-home --shell /bin/bash --groups sudo ci
|
||||||
|
RUN apt-get update && apt-get install -y jq sudo zstd
|
||||||
|
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||||
|
|
||||||
|
USER ci
|
||||||
|
WORKDIR /home/ci
|
14
README.md
14
README.md
|
@ -1,2 +1,14 @@
|
||||||
# actions-base-image
|
# Forgejo actions base image
|
||||||
|
|
||||||
|
Docker image with all dependencies installed, configured to be as close to
|
||||||
|
GitHub actions as possible.
|
||||||
|
|
||||||
|
Built and tagged on flora-6 with:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker build --tag node:20-bookworm .
|
||||||
|
```
|
||||||
|
|
||||||
|
Uses a `ci` user with passwordless sudo to enable nix single-user install.
|
||||||
|
|
||||||
|
See this [GH issue](https://github.com/NixOS/nix/issues/1559) for additional context.
|
||||||
|
|
Loading…
Reference in a new issue