Skip to content

Commit ab46ce1

Browse files
committed
Linting dockle / hadolint fixes
1 parent 64e842b commit ab46ce1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
docker-compose.yml
2+
podman-compose-sonarqube.yaml
3+
14
node_modules
25
docs/
36
.vscode

Containerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LABEL maintainer="Mihai Criveti" \
66
ARG PYTHON_VERSION=3.11
77

88
# Install Python and build dependencies
9+
# hadolint ignore=DL3041
910
RUN microdnf update -y && \
1011
microdnf install -y python${PYTHON_VERSION} python${PYTHON_VERSION}-devel gcc git && \
1112
microdnf clean all
@@ -21,7 +22,7 @@ COPY . /app
2122
# Create virtual environment, upgrade pip and install dependencies using uv for speed
2223
RUN python3 -m venv /app/.venv && \
2324
/app/.venv/bin/python3 -m pip install --upgrade pip setuptools pdm uv && \
24-
/app/.venv/bin/python3 -m uv pip install .[redis,postgres]
25+
/app/.venv/bin/python3 -m uv pip install ".[redis,postgres]"
2526

2627
# update the user permissions
2728
RUN chown -R 1001:0 /app && \

Containerfile.lite

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ FROM registry.access.redhat.com/ubi9/ubi-micro:9.6-1747318857 AS base
3030
# Builder stage
3131
###########################
3232
FROM registry.access.redhat.com/ubi9/ubi:9.6-1747219013 AS builder
33+
SHELL ["/bin/bash", "-c"]
3334

3435
ARG PYTHON_VERSION
3536
ARG ROOTFS_PATH
@@ -63,7 +64,7 @@ COPY . /app
6364
RUN set -euo pipefail \
6465
&& python3 -m venv /app/.venv \
6566
&& /app/.venv/bin/pip install --no-cache-dir --upgrade pip setuptools wheel pdm uv \
66-
&& /app/.venv/bin/uv pip install .[redis,postgres] \
67+
&& /app/.venv/bin/uv pip install ".[redis,postgres]" \
6768
&& rm -rf /root/.cache /var/cache/dnf
6869

6970
# ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)