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 11
11
# Note that the local machine must login to ghcr.io so that Docker could pull the ghcr.io/oracle/macaron-base
12
12
# image for this build.
13
13
14
- FROM ghcr.io/oracle/macaron-deps:latest@sha256:99526baf6596c4c3f24e4caa2b59afaf7f7c26d633ad3113ca24ba43dfad3f0f as deps_stage
15
-
16
14
FROM ghcr.io/oracle/macaron-base:latest@sha256:79b3b8b03cb9b6a124c6450f4baa58f96f83ee9e37f572c88a97597b35c7bc51
17
15
18
16
ENV HOME="/home/macaron"
@@ -37,17 +35,11 @@ ARG WHEEL_PATH
37
35
# the warning of not having correct ownership of /home/macaron is not raised.
38
36
USER macaron:macaron
39
37
COPY --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/
44
38
RUN : \
45
39
&& python3 -m venv $HOME/.venv \
46
40
&& . .venv/bin/activate \
47
41
&& pip install --no-compile --no-cache-dir --upgrade pip setuptools \
48
42
&& 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 '{}' \; \
51
43
&& rm -rf $HOME/dist \
52
44
&& deactivate
53
45
You can’t perform that action at this time.
0 commit comments