Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add more images #274

Merged
merged 2 commits into from
Aug 26, 2024
Merged
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
24 changes: 24 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 ./
Expand Down
7 changes: 7 additions & 0 deletions Dockerfile.all
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM docker.io/ananthakumaran/paisa:latest

RUN apk --no-cache add hledger beancount

WORKDIR /root/

CMD ["paisa", "serve"]
7 changes: 7 additions & 0 deletions Dockerfile.beancount
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM docker.io/ananthakumaran/paisa:latest

RUN apk --no-cache add beancount

WORKDIR /root/

CMD ["paisa", "serve"]
4 changes: 2 additions & 2 deletions Dockerfile.demo
Original file line number Diff line number Diff line change
@@ -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 ./
Expand Down
7 changes: 7 additions & 0 deletions Dockerfile.hledger
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM docker.io/ananthakumaran/paisa:latest

RUN apk --no-cache add hledger

WORKDIR /root/

CMD ["paisa", "serve"]
Loading