mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
5568205b34
1. Reads from external storage support now o_direct mode. 2. Simplify write unloading logic. Make pending buffer a ring buffer with a predefined capacity. 3. Add more tiered stats to info command
36 lines
No EOL
1 KiB
Text
36 lines
No EOL
1 KiB
Text
# syntax=docker/dockerfile:1
|
|
from ghcr.io/romange/ubuntu-dev:20 as builder
|
|
|
|
WORKDIR /build
|
|
COPY src/ ./src/
|
|
COPY helio/ ./helio/
|
|
COPY patches/ ./patches/
|
|
COPY CMakeLists.txt ./
|
|
RUN ./helio/blaze.sh -release -DBoost_USE_STATIC_LIBS=ON
|
|
|
|
WORKDIR build-opt
|
|
RUN ninja dragonfly
|
|
RUN curl -O https://raw.githubusercontent.com/ncopa/su-exec/master/su-exec.c && \
|
|
gcc -Wall -O2 su-exec.c -o su-exec
|
|
|
|
FROM ubuntu:20.04
|
|
|
|
LABEL org.opencontainers.image.title Dragonfly
|
|
LABEL org.opencontainers.image.source https://github.com/romange/dragonfly
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN groupadd -r -g 999 dfly && useradd -r -g dfly -u 999 dfly
|
|
RUN apt update && apt install -y libunwind8 libssl1.1 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN mkdir /data && chown dfly:dfly /data
|
|
VOLUME /data
|
|
WORKDIR /data
|
|
COPY tools/docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
COPY --from=builder /build/build-opt/dragonfly /usr/local/bin/
|
|
COPY --from=builder /build/build-opt/su-exec /usr/local/bin/
|
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|
|
|
|
EXPOSE 6380
|
|
CMD ["dragonfly", "--logtostderr"] |