File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 1111# Note that the local machine must login to ghcr.io so that Docker could pull the ghcr.io/oracle/macaron-base
1212# image for this build.
1313
14- FROM ghcr.io/oracle/macaron-deps:latest@sha256:99526baf6596c4c3f24e4caa2b59afaf7f7c26d633ad3113ca24ba43dfad3f0f as deps_stage
15-
1614FROM ghcr.io/oracle/macaron-base:latest@sha256:79b3b8b03cb9b6a124c6450f4baa58f96f83ee9e37f572c88a97597b35c7bc51
1715
1816ENV HOME="/home/macaron"
@@ -37,17 +35,11 @@ ARG WHEEL_PATH
3735# the warning of not having correct ownership of /home/macaron is not raised.
3836USER macaron:macaron
3937COPY --chown=macaron:macaron $WHEEL_PATH $HOME/dist/
40- # Currently, the only dependency stored in the minimal image is the wheel for Semgrep, which we copy here. Since the
41- # Macaron project dependencies lists Semgrep as a python dependency, we uninstall it first before using our wheel here
42- # to install a trusted built-from-source version.
43- COPY --chown=macaron:macaron --from=deps_stage /semgrep-*manylinux*.whl $HOME/dist/
4438RUN : \
4539 && python3 -m venv $HOME/.venv \
4640 && . .venv/bin/activate \
4741 && pip install --no-compile --no-cache-dir --upgrade pip setuptools \
4842 && find $HOME/dist -depth \( -type f \( -name "macaron-*.whl" \) \) -exec pip install --no-compile --no-cache-dir '{}' \; \
49- && pip uninstall semgrep -y \
50- && find $HOME/dist -depth \( -type f \( -name "semgrep-*.whl" \) \) -exec pip install --no-compile --no-cache-dir '{}' \; \
5143 && rm -rf $HOME/dist \
5244 && deactivate
5345
You can’t perform that action at this time.
0 commit comments