From 9455220a0b867e4e810e0f56a42df26c9ba461bd Mon Sep 17 00:00:00 2001 From: B4D_US3R Date: Thu, 1 Jan 2026 21:24:40 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D0=B0=D0=BB=20Dockerfile,=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D1=8C=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B7=D1=8B=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=D0=B9=D0=BD=D0=B5=D1=80=D0=BE=D0=B2=20=D0=B2?= =?UTF-8?q?=D0=B5=D1=81=D1=8F=D1=82=20=D0=BC=D0=B5=D0=BD=D1=8C=D1=88=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + Dockerfile | 12 +++++++++++- docker-compose.yml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 867ccf5..688a10d 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ config.yaml # Output of the go coverage tool, specifically when used with LiteIDE *.out kiki +redis_data # Dependency directories (remove the comment below to include it) # vendor/ diff --git a/Dockerfile b/Dockerfile index 0ade8a6..777570e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -FROM golang:1.24 +FROM golang:1.24-alpine AS build + +RUN apk add --no-cache make WORKDIR /app/kiki @@ -14,4 +16,12 @@ COPY Makefile /app/kiki/ RUN make +FROM alpine:latest + +WORKDIR /app/kiki/ + +COPY --from=build /app/kiki/kiki /app/kiki/kiki + +RUN chmod +x /app/kiki/kiki + CMD [ "/app/kiki/kiki", "run" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 4b7dbc1..f348f4a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: kiki: - build: ./ + image: git.catgirls.asia/b4d_us3r/kiki:latest restart: always volumes: - ./config.yaml:/app/kiki/config.yaml