Skip to content

Commit

Permalink
Fix Admission Controller Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nimrodkor committed Mar 14, 2022
1 parent 94d146e commit e1a6bbb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions admissioncontroller/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
FROM python:3.9.7-slim
# This dockerfile is built from the parent dir, hence the addition of `admissioncontroller/` everywhere
FROM python:3.9.7-slim

RUN apt-get update -y && apt-get install -y python3-pip python-dev
WORKDIR /app
COPY requirements.txt /app/requirements.txt
COPY checkov-requirements.txt /app/checkov-requirements.txt
COPY admissioncontroller/requirements.txt /app/requirements.txt
COPY admissioncontroller/checkov-requirements.txt /app/checkov-requirements.txt

RUN pip3 install -r /app/requirements.txt
RUN pip3 install -r /app/checkov-requirements.txt

COPY whorf.py /app
COPY wsgi.py /app
COPY admissioncontroller/whorf.py /app
COPY admissioncontroller/wsgi.py /app

# create the app user
RUN addgroup --gid 11000 app && adduser --disabled-password --gecos "" --uid 11000 --ingroup app app
Expand Down

0 comments on commit e1a6bbb

Please sign in to comment.