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