2 Commits

Author SHA1 Message Date
69f9af302f chore: docker file for Arch Linux 2026-01-04 12:25:41 +08:00
0e9a06be24 chore: update .gitignore to exclude executables 2026-01-04 11:20:02 +08:00
3 changed files with 26 additions and 1 deletions

2
.gitignore vendored
View File

@@ -3,4 +3,4 @@
/go.mod /go.mod
/go.sum /go.sum
logs/ logs/
TodayOnHistory TodayOnHistory-*

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM archlinux:latest
RUN pacman -Syu --no-confirm
WORKDIR /app
COPY . .
RUN chmod +x TodayOnHistory
EXPOSE 8080
CMD ["./TodayOnHistory"]

11
docker-compose.yml Normal file
View File

@@ -0,0 +1,11 @@
services:
today-on-history:
build: "."
container_name: "today-on-history"
restart: "always"
ports:
- 8080:8080
expose:
- 8080
volumes:
- /srv/TodayOnHistory:/app