Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 26 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,23 @@ COPY ./build/supervisord.conf /etc/
USER root

# install dotnet and supervisor
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
wget \
apt-transport-https \
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
supervisor \
wget \
dos2unix \
ca-certificates \
\
# .NET dependencies
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu66 \
libssl1.1 \
libgcc-s1 \
libicu74 \
libssl3t64 \
libstdc++6 \
zlib1g && \
dos2unix /app/docker-entrypoint.sh
tzdata \
tzdata-legacy \
&& rm -rf /var/lib/apt/lists/* \
&& dos2unix /app/docker-entrypoint.sh
Comment on lines +114 to +130
Copy link

Copilot AI Sep 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same RUN command block appears twice in the Dockerfile (lines 114-130 and 175-191). Consider extracting this into a reusable pattern or consolidating the stages if possible to reduce duplication and maintenance overhead.

Copilot uses AI. Check for mistakes.


ENV discovery.type=single-node \
xpack.security.enabled=false \
Expand Down Expand Up @@ -169,20 +172,23 @@ COPY ./build/supervisord.conf /etc/
USER root

# install dotnet and supervisor
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
wget \
apt-transport-https \
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
supervisor \
wget \
dos2unix \
ca-certificates \
\
# .NET dependencies
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu66 \
libssl1.1 \
libgcc-s1 \
libicu74 \
libssl3t64 \
libstdc++6 \
zlib1g && \
dos2unix /app/docker-entrypoint.sh
tzdata \
tzdata-legacy \
&& rm -rf /var/lib/apt/lists/* \
&& dos2unix /app/docker-entrypoint.sh

ENV discovery.type=single-node \
xpack.security.enabled=false \
Expand Down