File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ ARG BASE_IMAGE
2+ FROM ${BASE_IMAGE}
3+ ARG VERSION
4+ ENV PYTHON_VERSION=${VERSION}
5+
6+ # shadow-utils, zip
7+ RUN dnf install -y shadow-utils zip && dnf clean all
8+
9+ ENV GOSU_VERSION 1.14
10+ # https://github.com/tianon/gosu/releases/tag/1.14
11+ # key https://keys.openpgp.org/search?q=tianon%40debian.org
12+ RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64" \
13+ && chmod +x /usr/local/bin/gosu
14+
15+ RUN mkdir -p /sebs/
16+ COPY dockerfiles/python_installer.sh /sebs/installer.sh
17+ COPY dockerfiles/entrypoint.sh /sebs/entrypoint.sh
18+ RUN chmod +x /sebs/entrypoint.sh
19+
20+ # useradd and groupmod is installed in /usr/sbin which is not in PATH
21+ ENV PATH=/usr/sbin:$PATH
22+ ENV SCRIPT_FILE=/mnt/function/package.sh
23+ CMD /bin/bash /sebs/installer.sh
24+ ENTRYPOINT ["/sebs/entrypoint.sh"]
You can’t perform that action at this time.
0 commit comments