diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e12a2824..e306cd0b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -29,3 +29,27 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + - uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + file: ./Dockerfile.hledger + push: true + tags: ${{ steps.meta.outputs.tags }}-hledger + labels: ${{ steps.meta.outputs.labels }} + - uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + file: ./Dockerfile.beancount + push: true + tags: ${{ steps.meta.outputs.tags }}-beancount + labels: ${{ steps.meta.outputs.labels }} + - uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + file: ./Dockerfile.all + push: true + tags: ${{ steps.meta.outputs.tags }}-all + labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile index b5a8ba33..4c243458 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM node:18-alpine3.18 as web +FROM node:18-alpine3.18 AS web WORKDIR /usr/src/paisa COPY package.json package-lock.json* ./ RUN npm install COPY . . RUN npm run build -FROM golang:1.21-alpine3.18 as go +FROM golang:1.21-alpine3.18 AS go WORKDIR /usr/src/paisa RUN apk --no-cache add sqlite gcc g++ COPY go.mod go.sum ./ diff --git a/Dockerfile.all b/Dockerfile.all new file mode 100644 index 00000000..fd68fc99 --- /dev/null +++ b/Dockerfile.all @@ -0,0 +1,7 @@ +FROM docker.io/ananthakumaran/paisa:latest + +RUN apk --no-cache add hledger beancount + +WORKDIR /root/ + +CMD ["paisa", "serve"] diff --git a/Dockerfile.beancount b/Dockerfile.beancount new file mode 100644 index 00000000..4ec89737 --- /dev/null +++ b/Dockerfile.beancount @@ -0,0 +1,7 @@ +FROM docker.io/ananthakumaran/paisa:latest + +RUN apk --no-cache add beancount + +WORKDIR /root/ + +CMD ["paisa", "serve"] diff --git a/Dockerfile.demo b/Dockerfile.demo index 34ad264d..7aff889c 100644 --- a/Dockerfile.demo +++ b/Dockerfile.demo @@ -1,11 +1,11 @@ -FROM node:18-alpine3.18 as web +FROM node:18-alpine3.18 AS web WORKDIR /usr/src/paisa COPY package.json package-lock.json* ./ RUN npm install COPY . . RUN npm run build -FROM golang:1.21-alpine3.18 as go +FROM golang:1.21-alpine3.18 AS go WORKDIR /usr/src/paisa RUN apk --no-cache add sqlite gcc g++ COPY go.mod go.sum ./ diff --git a/Dockerfile.hledger b/Dockerfile.hledger new file mode 100644 index 00000000..3d7c68cb --- /dev/null +++ b/Dockerfile.hledger @@ -0,0 +1,7 @@ +FROM docker.io/ananthakumaran/paisa:latest + +RUN apk --no-cache add hledger + +WORKDIR /root/ + +CMD ["paisa", "serve"]