forked from yegle/fava-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
32 lines (24 loc) · 765 Bytes
/
Dockerfile
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
FROM debian:bullseye as build_env
ARG BEANCOUNT_VERSION
RUN apt-get update
RUN apt-get install -y build-essential libxml2-dev libxslt-dev curl \
python3 libpython3-dev python3-pip git python3-venv
ENV PATH "/app/bin:$PATH"
RUN python3 -mvenv /app
ADD requirements.txt .
RUN pip3 install -U -r requirements.txt
RUN pip3 uninstall -y pip
RUN find /app -name __pycache__ -exec rm -rf -v {} +
#Distroless is too limited for my use.
# I use Python
FROM python:3.13.0-bullseye
COPY --from=build_env /app /app
RUN apt-get update
RUN apt-get install -y git nano poppler-utils wget
# Default fava port number
EXPOSE 5000
ENV BEANCOUNT_FILE ""
ENV FAVA_HOST "0.0.0.0"
ENV PATH "/app/bin:$PATH"
ENV PYTHONPATH "/myData/myTools:$PYTHONPATH"
ENTRYPOINT ["fava"]