mirror of
https://github.com/nalgeon/redka.git
synced 2025-12-24 12:38:00 +08:00
docker: entrypoint
This commit is contained in:
6
.dockerignore
Normal file
6
.dockerignore
Normal file
@@ -0,0 +1,6 @@
|
||||
.dockerignore
|
||||
.git
|
||||
.gitignore
|
||||
.vscode/
|
||||
build/
|
||||
Dockerfile
|
||||
@@ -8,10 +8,11 @@ RUN make build
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/main valkey-cli
|
||||
RUN ln -s /usr/bin/valkey-cli /usr/local/bin/redis-cli
|
||||
RUN mkdir /data
|
||||
VOLUME /data
|
||||
WORKDIR /data
|
||||
COPY --from=build /app/build/redka /usr/local/bin/redka
|
||||
HEALTHCHECK CMD valkey-cli PING || exit 1
|
||||
EXPOSE 6379
|
||||
CMD ["redka", "-h", "0.0.0.0", "-p", "6379", "redka.db"]
|
||||
ENTRYPOINT ["redka", "-h", "0.0.0.0", "-p", "6379"]
|
||||
|
||||
Reference in New Issue
Block a user