-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (29 loc) · 749 Bytes
/
Dockerfile
File metadata and controls
44 lines (29 loc) · 749 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
ARG venv_python=3.12
FROM python:${venv_python}
LABEL Maintainer="PCGL Project"
USER root
RUN groupadd -r pcgl && useradd -rm pcgl -g pcgl
RUN apt-get update && apt-get -y install \
bash \
expect \
jq \
curl \
vim \
git
COPY app/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY app/ /app/
WORKDIR /vault/
RUN mkdir -p /vault/config
RUN mkdir -p /vault/data
RUN chmod 777 /vault/data
WORKDIR /app/
RUN chown -R pcgl:pcgl /app
RUN mkdir -p /permissions_engine
RUN chown -R pcgl:pcgl /permissions_engine
USER pcgl
RUN curl -L -o opa https://openpolicyagent.org/downloads/v1.1.0/opa_linux_amd64_static
RUN chmod 755 ./opa
RUN touch /app/initial_setup
ENTRYPOINT pytest
EXPOSE 1235