Compare commits

..

No commits in common. "3f6d736a01fa04df7be51df4bdbdd62e74eb7461" and "63892ccfd2b90f56af1b11727112fe0a3870e8ac" have entirely different histories.

3 changed files with 14 additions and 48 deletions

View File

@ -1,28 +0,0 @@
name: Build docker image
on:
push:
branches: ["main"]
env:
REGISTRY: git.matterlinux.xyz
IMAGE: ${{gitea.repository}}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: "https://github.com/actions/checkout@v4"
- name: Login to container repo
uses: "https://github.com/docker/login-action@v1"
with:
registry: ${{env.REGISTRY}}
username: ${{gitea.actor}}
password: ${{secrets.PACKAGES_TOKEN}}
- name: Build image
run: |
docker build --tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest .
docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest

View File

@ -1,24 +1,17 @@
FROM golang:1.23.5
FROM golang:1.23.2
WORKDIR /app
RUN useradd runner -r -u 1001 -d /app
RUN chown -R runner:runner /app
USER runner
COPY *.go ./
COPY *.mod ./
COPY *.sum ./
COPY *.mod ./
COPY *.sum ./
RUN go mod download
COPY *.go ./
COPY Makefile ./
COPY lib ./lib
COPY log ./log
COPY public ./public
COPY routes ./routes
COPY templates ./templates
RUN make
RUN go build
ENTRYPOINT ["/app/security"]

View File

@ -1,24 +1,25 @@
# security | MatterLinux security tracker
![](https://git.matterlinux.xyz/matter/security/actions/workflows/docker.yml/badge.svg)
Soruce code of MatterLinux's security tracker, located at
[security.matterlinux.xyz](https://security.matterlinux.xyz)
### Deployment
Web server can be deployed with docker compose, here is an example configuration:
Web server can be built and deployed with docker compose, here is an
example configuration:
```yaml
version: "3"
services:
security:
container_name: mattersecurity
image: git.matterlinux.xyz/matter/security
image: mattersecurity
restart: unless-stopped
build:
context: ./
ports:
- "127.0.0.1:9876:9876"
volumes:
- "./db:/app/db"
restart: unless-stopped
```
After saving the configuration file, you can run the docker container:
After saving the configuration file, you can build and run the docker container:
```bash
docker-compose up -d
```