forked from fortra/function-pythonic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (16 loc) · 677 Bytes
/
Dockerfile
File metadata and controls
18 lines (16 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.14-slim-trixie AS image
COPY dist/*.whl /root
WORKDIR /
RUN \
set -eux && \
pip install --upgrade pip setuptools && \
pip install --root-user-action ignore --no-build-isolation $(echo /root/*.whl)[packages,pip-install] && \
rm -rf /root/*.whl /root/.cache && \
groupadd --gid 2000 pythonic && \
useradd --uid 2000 --gid pythonic --home-dir /opt/pythonic --create-home --shell /usr/sbin/nologin pythonic && \
mkdir --parents $(HOME=/opt/pythonic python -c 'import site;print(site.USER_SITE)') && \
chown pythonic:pythonic --recursive /opt/pythonic
USER pythonic:pythonic
WORKDIR /opt/pythonic
EXPOSE 9443
ENTRYPOINT ["function-pythonic", "grpc"]