diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index 3c9cce3..ff1fd81 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -14,27 +14,11 @@ jobs: env: RUNNER_TOOL_CACHE: '/toolcache' runs-on: ubuntu-latest + container: git.max-richter.dev/max/website:latest steps: - name: 🔄 Checkout code uses: actions/checkout@v3 - - name: 📦 Install Git LFS - run: | - apt update && apt install git-lfs zstd - - - name: 📥 Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: 📦 Install PNPM - uses: pnpm/action-setup@v3 - id: pnpm-install - with: - version: 8 - node_version: 20 - run_install: false - - name: 🔢 Calculate cache IDs run: | # Calculate cache IDs for Git LFS and PNPM diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ca039bf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:21-alpine + +# Install necessary packages +RUN apk add --no-cache \ + git \ + git-lfs \ + bash + +# Install PNPM globally +RUN npm install -g pnpm + +# Display installed versions +RUN node --version && \ + npm --version && \ + git --version && \ + git-lfs version && \ + pnpm --version