Skip to content
Snippets Groups Projects
Commit 7373b2ad authored by Derek Hudson's avatar Derek Hudson
Browse files

Changed AWS Policy agent image to be based on Alpine Linux.

parent 8081cc70
No related branches found
No related tags found
1 merge request!456AWS - Merge from dev
......@@ -13,7 +13,7 @@
# limitations under the License.
# This Dockerfile assumes you used "make build" to convert the AdminUI to static files in frontend/adminui/dist/policyservice
FROM public.ecr.aws/docker/library/python:3.9-slim-buster
FROM public.ecr.aws/docker/library/alpine:latest
# set environment variables
# PYTHONDONTWRITEBYTECODE - Prevents Python from writing pyc files to disc (equivalent to python -B option)
......@@ -22,10 +22,19 @@ ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
EXPOSE 8080/tcp
RUN apk update && \
apk upgrade
RUN apk add gcc musl-dev linux-headers python3-dev
RUN apk add py3-pip
WORKDIR /opt
COPY ./app /opt
RUN pip install --no-cache-dir --upgrade -r /opt/requirements.txt
RUN apk del gcc musl-dev linux-headers python3-dev
RUN apk --purge del apk-tools
# Admin UI POC
#COPY ./frontend/adminui/dist/policyservice /opt/assets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment