-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
30 lines (23 loc) · 881 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
FROM python:3.13 AS barkoder
RUN apt-get update && apt-get install -y cmake libgl1 libcurl4-openssl-dev pkg-config \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -U pip pybind11[global]
COPY barkoder /barkoder
RUN mkdir /barkoder/build
WORKDIR /barkoder/build
RUN cmake .. && make
FROM python:3.13
RUN mkdir /app
RUN useradd app
WORKDIR /app
RUN apt-get update && apt-get install -y openjdk-17-jre-headless libldap2-dev libssl-dev libsasl2-dev libgl1 pkg-config \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -U pip
COPY requirements.txt /app/
RUN pip install -r requirements.txt
USER app:app
COPY --from=barkoder /barkoder/build/Barkoder.cpython-313-x86_64-linux-gnu.so /usr/local/lib/python3.13/site-packages/Barkoder.cpython-313-x86_64-linux-gnu.so
COPY main /app/main
COPY vdv_pkpass /app/vdv_pkpass
COPY manage.py /app/manage.py
COPY .git_hash /app/git_hash