Skip to content

Commit dbe8878

Browse files
♻️Fix docker build warnings (ITISFoundation#8122)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 35f2749 commit dbe8878

File tree

6 files changed

+10
-23
lines changed

6 files changed

+10
-23
lines changed

packages/postgres-database/docker/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,5 @@ COPY entrypoint.bash /home/entrypoint.bash
5555

5656
RUN chmod +x /home/entrypoint.bash
5757

58-
ENV POSTGRES_USER=scu \
59-
POSTGRES_PASSWORD=adminadmin \
60-
POSTGRES_HOST=postgres \
61-
POSTGRES_PORT=5432 \
62-
POSTGRES_DB=simcoredb
63-
6458
ENTRYPOINT [ "/bin/bash", "/home/entrypoint.bash" ]
6559
CMD [ "sc-pg", "upgrade" ]

services/dask-sidecar/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG PYTHON_VERSION="3.11.9"
55
ARG UV_VERSION="0.7"
66
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
77
# we docker image is built based on debian
8-
FROM --platform=${TARGETPLATFORM} python:${PYTHON_VERSION}-slim-bookworm AS base
8+
FROM python:${PYTHON_VERSION}-slim-bookworm AS base
99
ARG TARGETPLATFORM
1010
ARG BUILDPLATFORM
1111
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log

services/migration/Dockerfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,7 @@ FROM base AS production
8484

8585
ENV PYTHONOPTIMIZE=TRUE
8686

87-
# testing defaults
88-
ENV POSTGRES_USER=scu \
89-
POSTGRES_PASSWORD=adminadmin \
90-
POSTGRES_HOST=postgres \
91-
POSTGRES_PORT=5432 \
92-
POSTGRES_DB=simcoredb \
93-
SC_DONE_MARK_FILE=migration.done
94-
87+
ENV SC_DONE_MARK_FILE=migration.done
9588

9689
WORKDIR /home/scu
9790

services/static-webserver/client/tools/qooxdoo-kit/builder/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ FROM server-base AS production
8484
COPY --from=build-client \
8585
--chown=${SC_USER_NAME}:${SC_USER_NAME} \
8686
/project/build-output "/static-content"
87-
ENV SC_BUILD_TARGET production
87+
ENV SC_BUILD_TARGET=production
8888

8989
FROM server-base AS development
90-
ENV SC_BUILD_TARGET development
90+
ENV SC_BUILD_TARGET=development

services/storage/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
6565
ENV PATH="${VIRTUAL_ENV}/bin:$PATH"
6666

6767

68-
ENV SC_BUILD_TARGET base
69-
ENV SC_BOOT_MODE default
68+
ENV SC_BUILD_TARGET=base
69+
ENV SC_BOOT_MODE=default
7070

7171
EXPOSE 8080
7272
# -------------------------- -------------------------------
@@ -81,7 +81,7 @@ EXPOSE 8080
8181

8282
FROM base AS build
8383

84-
ENV SC_BUILD_TARGET build
84+
ENV SC_BUILD_TARGET=build
8585

8686
RUN --mount=type=cache,target=/var/cache/apt,sharing=private \
8787
set -eux \

services/web/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ENV PATH="${VIRTUAL_ENV}/bin:$PATH"
7676

7777

7878
# TODO: eliminate this variable!
79-
ENV IS_CONTAINER_CONTEXT Yes
79+
ENV IS_CONTAINER_CONTEXT=Yes
8080

8181

8282
EXPOSE 8080
@@ -93,7 +93,7 @@ EXPOSE 8080
9393

9494
FROM base AS build
9595

96-
ENV SC_BUILD_TARGET build
96+
ENV SC_BUILD_TARGET=build
9797

9898
RUN --mount=type=cache,target=/var/cache/apt,sharing=private \
9999
set -eux \
@@ -206,7 +206,7 @@ CMD ["services/web/server/docker/boot.sh"]
206206
#
207207
FROM build AS development
208208

209-
ENV SC_BUILD_TARGET development
209+
ENV SC_BUILD_TARGET=development
210210

211211
WORKDIR /devel
212212

0 commit comments

Comments
 (0)