From 112e1c1500ecfe949e497935bd35a677a5b82b4c Mon Sep 17 00:00:00 2001 From: Olakunle Jegede Date: Thu, 16 Jan 2025 10:53:04 +0000 Subject: [PATCH] OJ-2870: Update docker file Added and updated Dockerfile with missing curl command --- Dockerfile | 10 ++++++---- dev.Dockerfile | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 202411c9..833f5335 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,8 +20,10 @@ RUN yarn install --production --frozen-lockfile FROM node:20.11.1-alpine3.19@sha256:f4c96a28c0b2d8981664e03f461c2677152cd9a756012ffa8e2c6727427c2bda AS final -RUN ["apk", "--no-cache", "upgrade"] -RUN ["apk", "add", "--no-cache", "tini"] +RUN apk --no-cache upgrade \ +&& apk add --no-cache tini \ +&& apk add --no-cache curl + RUN [ "yarn", "set", "version", "1.22.17" ] WORKDIR /app @@ -35,9 +37,9 @@ COPY --from=builder /app/yarn.lock ./ # Add in dynatrace layer COPY --from=khw46367.live.dynatrace.com/linux/oneagent-codemodules-musl:nodejs / / -ENV LD_PRELOAD /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so +ENV LD_PRELOAD=/opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so -ENV PORT 8080 +ENV PORT=8080 EXPOSE $PORT HEALTHCHECK --interval=10s --timeout=2s --start-period=5s --retries=3 \ diff --git a/dev.Dockerfile b/dev.Dockerfile index 2a2e69be..83eac40c 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -37,9 +37,9 @@ COPY --from=builder /app/yarn.lock ./ # Add in dynatrace layer COPY --from=khw46367.live.dynatrace.com/linux/oneagent-codemodules-musl:nodejs / / -ENV LD_PRELOAD /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so +ENV LD_PRELOAD=/opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so -ENV PORT 8080 +ENV PORT=8080 EXPOSE $PORT HEALTHCHECK --interval=10s --timeout=2s --start-period=5s --retries=3 \