Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use ubi base image for proxy #1351

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
FROM python:3.10.12-slim-buster
FROM registry.access.redhat.com/ubi9/python-311

# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

RUN adduser --disabled-password --gecos '' worker

USER worker
USER 0
RUN mkdir /home/worker
WORKDIR /home/worker

ENV PATH="/home/worker/.local/bin:${PATH}"

COPY --chown=worker:worker proxy/requirements.txt .
COPY --chown=1000:100 proxy/requirements.txt .
RUN pip install -r requirements.txt --no-cache-dir

COPY --chown=worker:worker proxy/proxy .
COPY --chown=1000:100 proxy/proxy .
RUN chmod +x /home/worker/entrypoint.sh

USER 1000:100
EXPOSE 8443
ENTRYPOINT ["/home/worker/entrypoint.sh"]
Loading