Skip to content

Commit

Permalink
build: add more images (#274)
Browse files Browse the repository at this point in the history
* build: follow Dockerfile conventions

* build: provide more images
  • Loading branch information
azzamsa authored Aug 26, 2024
1 parent da39496 commit 514828c
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 4 deletions.
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"]

0 comments on commit 514828c

Please sign in to comment.