From 2b6f2dabf43dbe69b3a773fe15b7556cc99a596e Mon Sep 17 00:00:00 2001 From: Alper Alkan Date: Sun, 30 Jul 2023 23:28:04 +0200 Subject: [PATCH] fix copy command --- Dockerfile | 9 +++++---- .../old-cpu-compability-mode.sh | 0 2 files changed, 5 insertions(+), 4 deletions(-) rename deployment/compability-mode.sh => deployment-scripts/old-cpu-compability-mode.sh (100%) diff --git a/Dockerfile b/Dockerfile index b797d5f7..0bc480f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,17 +24,18 @@ WORKDIR /app FROM base AS build # Copy files only needed for install -COPY package.json pnpm-lock.yaml ./ +COPY package.json pnpm-lock.yaml deployment-scripts ./ RUN pnpm install --frozen-lockfile # Copy everything for building COPY . . RUN pnpm run build FROM base AS prod-deps -COPY package.json pnpm-lock.yaml deployment/ ./ +COPY package.json pnpm-lock.yaml deployment-scripts ./ RUN pnpm install --prod --frozen-lockfile -# Optional compability mode for older CPUs -RUN /bin/sh deployment/compability-mode.sh + +# Enables compability mode for older CPUs +RUN /bin/sh deployment-scripts/old-cpu-compability-mode.sh FROM base AS release ENV NODE_ENV=production diff --git a/deployment/compability-mode.sh b/deployment-scripts/old-cpu-compability-mode.sh similarity index 100% rename from deployment/compability-mode.sh rename to deployment-scripts/old-cpu-compability-mode.sh