-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 757 Bytes
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 757 Bytes
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
FROM python:3.13.3-slim as build
WORKDIR /wheels
RUN apk add --no-cache \
ncurses-dev \
build-base
COPY docker_reqs.txt /opt/instainfo/requirements.txt
RUN pip3 wheel -r /opt/instainfo/requirements.txt
FROM python:3.13.3-slim
WORKDIR /home/instainfo
RUN adduser -D instainfo
COPY --from=build /wheels /wheels
COPY --chown=instainfo:instainfo requirements.txt /home/instainfo/
RUN pip3 install -r requirements.txt -f /wheels \
&& rm -rf /wheels \
&& rm -rf /root/.cache/pip/* \
&& rm requirements.txt
COPY --chown=instainfo:instainfo src/ /home/instainfo/src
COPY --chown=instainfo:instainfo instainfo.py /home/instainfo/
COPY --chown=instainfo:instainfo config/ /home/instainfo/config
USER instainfo
ENTRYPOINT ["python", "instainfo.py"]