-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.full
35 lines (29 loc) · 969 Bytes
/
Dockerfile.full
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
###################################################
FROM python:slim as statically-linked-deps
###################################################
ARG INSTALL_DEPS=true
ENV SOURCE_DIR="/install-bin"
RUN \
mkdir -p ${SOURCE_DIR} && \
apt-get update && \
apt-get install --no-install-recommends -y \
binutils \
cifs-utils \
jq \
patchelf \
&& \
apt-get clean && \
pip3 install --no-cache-dir staticx && \
staticx `which mount.cifs` ${SOURCE_DIR}/mount.cifs && \
chmod +s ${SOURCE_DIR}/mount.cifs && \
staticx `which jq` ${SOURCE_DIR}/jq
###################################################
FROM busybox
###################################################
ARG INSTALL_DEPS=false
ENV INSTALL_DEPS="$INSTALL_DEPS"
ENV SOURCE_DIR="/install-bin"
COPY --from=statically-linked-deps ${SOURCE_DIR} ${SOURCE_DIR}
ADD ./driver/smb /bin/smb
ADD ./install_smb_flexvol.sh /bin/install_smb_flexvol.sh
ENTRYPOINT ["/bin/install_smb_flexvol.sh"]