Skip to content

Commit 2692288

Browse files
committed
docker: entrypoint
1 parent 6bcbec5 commit 2692288

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.dockerignore
2+
.git
3+
.gitignore
4+
.vscode/
5+
build/
6+
Dockerfile

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ RUN make build
88

99
FROM alpine:latest
1010
RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/main valkey-cli
11+
RUN ln -s /usr/bin/valkey-cli /usr/local/bin/redis-cli
1112
RUN mkdir /data
1213
VOLUME /data
1314
WORKDIR /data
1415
COPY --from=build /app/build/redka /usr/local/bin/redka
1516
HEALTHCHECK CMD valkey-cli PING || exit 1
1617
EXPOSE 6379
17-
CMD ["redka", "-h", "0.0.0.0", "-p", "6379", "redka.db"]
18+
ENTRYPOINT ["redka", "-h", "0.0.0.0", "-p", "6379"]

0 commit comments

Comments
 (0)