-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM node:20-alpine AS base | ||
|
||
RUN npm i -g pnpm@8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM node:20-alpine AS base | ||
|
||
RUN npm i -g pnpm@8 | ||
|
||
# Install dependencies for compiling node-gyp (since there is no pre-built | ||
# binary for Alpine) | ||
# https://stackoverflow.com/a/59538284/7044732 | ||
RUN apk add g++ make python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"name": "@serieslist/docker-base-images", | ||
"targets": { | ||
"build:docker": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"cwd": "packages/docker-base-images", | ||
"commands": [ | ||
"docker buildx build --push --cache-to type=gha,mode=max,scope=base --cache-from type=gha,scope=base -t ghcr.io/joosepalviste/serieslist-base:latest -f Dockerfile.base .", | ||
"docker buildx build --push --cache-to type=gha,mode=max,scope=dependencies --cache-from type=gha,scope=dependencies -t ghcr.io/joosepalviste/serieslist-base:latest -f Dockerfile.dependencies ." | ||
], | ||
"parallel": true | ||
} | ||
} | ||
} | ||
} |