-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (39 loc) · 1.12 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM ubuntu:rolling
RUN apt-get update && apt-get install -y sudo
RUN \
sudo apt-get update && \
sudo apt-get install -y \
software-properties-common build-essential
RUN \
sudo apt-get update && \
sudo apt-get install -y \
pkg-config
RUN \
sudo apt-get update && \
sudo apt-get install -y \
libssl-dev libdbus-1-dev libdbus-glib-1-dev
RUN \
sudo apt-get update && \
sudo apt-get install -y \
python3.12 python3-venv
RUN \
sudo apt-get update && \
sudo apt-get install -y \
python3-dbus libffi-dev libkrb5-dev
# Install required packages
RUN apt-get update && \
apt-get install -y python3-pip
COPY . /app
WORKDIR /app
# Create a virtual environment
RUN python3 -m venv venv
# Upgrade pip inside the virtual environment and install dependencies
RUN ./venv/bin/pip install --upgrade pip && ./venv/bin/pip install -r requirements.txt
WORKDIR /app/user-sync.py
RUN ../venv/bin/pip install external/okta-0.0.3.1-py2.py3-none-any.whl
RUN ../venv/bin/pip install ./sign_client
RUN ../venv/bin/pip install -e .
RUN make
EXPOSE 8080
ENTRYPOINT ["../venv/bin/python3"]
CMD ["../src/app.py"]