Skip to content

Commit 04cad95

Browse files
committed
more syntax consistency with file/mount paths
1 parent 90bbef1 commit 04cad95

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ARG \
2525

2626
# update all packages and install procps as simple docker healthcheck
2727
# trivy:ignore:DS-0025
28-
RUN --mount=type=cache,id="apkcache",target=/etc/apk/cache \
28+
RUN --mount=type=cache,id="apkcache",target="/etc/apk/cache" \
2929
apk update \
3030
&& apk upgrade \
3131
&& apk add procps-ng
@@ -75,7 +75,7 @@ COPY --from=ghcr.io/aquasecurity/trivy:latest --link /usr/local/bin/trivy /usr/l
7575
# add requirements for dynamic versioning support
7676
USER root
7777
# trivy:ignore:DS-0025
78-
RUN --mount=type=cache,id="apkcache",target=/etc/apk/cache \
78+
RUN --mount=type=cache,id="apkcache",target="/etc/apk/cache" \
7979
apk add git make
8080
USER ${USER}
8181
# add prek (pre-commit) and uv-dynamic-versioning & setup the app's virtual environment
@@ -86,11 +86,11 @@ RUN --mount=type=cache,id="usercache",uid=${UID},gid=${GID},target="${BASE_DIR}/
8686
# install app dependencies, continue building the DevContainer if it fails, ignore permission mismatches between host and container
8787
RUN \
8888
--mount=type=cache,id="usercache",uid=${UID},gid=${GID},target="${BASE_DIR}/.cache" \
89-
--mount=type=bind,source=pyproject.toml,target="${BASE_DIR}/pyproject.toml" \
90-
--mount=type=bind,source=README.md,target="${BASE_DIR}/README.md" \
91-
--mount=type=bind,source=uv.lock,target="${BASE_DIR}/uv.lock" \
92-
--mount=type=bind,source=.git,target="${BASE_DIR}/.git" \
93-
--mount=type=bind,source=src,target="${BASE_DIR}/src" \
89+
--mount=type=bind,source="pyproject.toml",target="${BASE_DIR}/pyproject.toml" \
90+
--mount=type=bind,source="README.md",target="${BASE_DIR}/README.md" \
91+
--mount=type=bind,source="uv.lock",target="${BASE_DIR}/uv.lock" \
92+
--mount=type=bind,source=".git",target="${BASE_DIR}/.git" \
93+
--mount=type=bind,source="src",target="${BASE_DIR}/src" \
9494
GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0="safe.directory" GIT_CONFIG_VALUE_0="${BASE_DIR}" \
9595
uv sync --no-default-groups || true
9696

@@ -99,7 +99,7 @@ FROM build_image AS dev_image
9999
# install system dependencies for development and debugging inside a DevContainer
100100
USER root
101101
# trivy:ignore:DS-0025
102-
RUN --mount=type=cache,id="apkcache",target=/etc/apk/cache \
102+
RUN --mount=type=cache,id="apkcache",target="/etc/apk/cache" \
103103
apk add \
104104
# required for VSCode
105105
bash \
@@ -162,7 +162,7 @@ RUN chown -R ${UID}:${GID} "${BASE_DIR}/mnt"
162162
# remove package manager in release image
163163
RUN apk --purge del apk-tools
164164
# apply additional image hardening
165-
RUN --mount=type=bind,source=.devcontainer/security/hardening.sh,target="/sbin/hardening.sh" \
165+
RUN --mount=type=bind,source=".devcontainer/security/hardening.sh",target="/sbin/hardening.sh" \
166166
hardening.sh
167167
USER ${USER}
168168

0 commit comments

Comments
 (0)