Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
ruvcoindev committed May 21, 2024
0 parents commit 60faccb
Show file tree
Hide file tree
Showing 29 changed files with 3,175 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Docker"
on:
push:

env:
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7

jobs:
monolith:
name: Docker image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Containers
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v3
with:
context: .
platforms: ${{ env.PLATFORMS }}
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/ruvmail:${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.db
.DS_Store
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM docker.io/golang:alpine3.18 as builder

COPY . /src
WORKDIR /src

RUN apk add --no-cache --update go gcc g++
RUN go build -o /src/ruvmail ./cmd/ruvmail

FROM docker.io/alpine:3.18

LABEL org.opencontainers.image.source=https://github.com/ruvcoindev/ruvmail
LABEL org.opencontainers.image.description=Ruvmail
LABEL org.opencontainers.image.licenses=MPL-2.0

COPY --from=builder /src/ruvmail /usr/bin/ruvmail

EXPOSE 1143/tcp
EXPOSE 1025/tcp
VOLUME /etc/ruvmail

ENTRYPOINT ["/usr/bin/ruvmail", "-smtp=:1025", "-imap=:1143", "-database=/etc/ruvmail/ruvmail.db"]
Loading

0 comments on commit 60faccb

Please sign in to comment.