This repository was archived by the owner on Oct 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
- # switch back to Alpine when/if https://bugs.alpinelinux.org/issues/8470 is fixed
2
- # FROM alpine:latest
3
- # RUN apk --update upgrade && apk add bash nfs-utils && rm -rf /var/cache/apk/*
4
-
1
+ # Alpine can only be used if/when this bug is fixed: https://bugs.alpinelinux.org/issues/8470
5
2
ARG BUILD_FROM=debian:stretch-slim
6
3
7
- FROM $BUILD_FROM
8
-
9
4
# https://github.com/ehough/docker-nfs-server/pull/3#issuecomment-387880692
10
5
ARG DEBIAN_FRONTEND=noninteractive
11
6
12
- # kmod is required for lsmod
13
- # libcap2-bin is required for checking capabilities
7
+ FROM $BUILD_FROM
8
+
9
+ # kmod is needed for lsmod, and libcap2-bin is needed for confirming Linux capabilities
14
10
RUN apt-get update && \
15
11
apt-get install -y --no-install-recommends nfs-kernel-server kmod libcap2-bin && \
16
12
apt-get clean && \
17
13
rm -rf /var/lib/apt/lists && \
18
- rm /etc/idmapd.conf # remove the default idmapd.conf
19
-
20
- ADD ./entrypoint.sh /usr/local/bin
21
- RUN chmod +x /usr/local/bin/entrypoint.sh
14
+ \
15
+ # remove the default idmapd.conf
16
+ rm -v /etc/idmapd.conf
22
17
23
18
# http://wiki.linux-nfs.org/wiki/index.php/Nfsv4_configuration
24
19
RUN mkdir -p /var/lib/nfs/rpc_pipefs && \
@@ -28,4 +23,6 @@ RUN mkdir -p /var/lib/nfs/rpc_pipefs && \
28
23
29
24
EXPOSE 2049
30
25
26
+ # setup entrypoint
27
+ COPY ./entrypoint.sh /usr/local/bin
31
28
ENTRYPOINT ["/usr/local/bin/entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments