Skip to content

Commit dd2997c

Browse files
authored
Add files via upload
Added support for Amazon Linux 2023?
1 parent faddcc5 commit dd2997c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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"]

0 commit comments

Comments
 (0)