UBERF-10599: Fix ws not found in gmail

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artem Savchenko 2025-05-15 16:56:24 +07:00
parent 5ee8cc8027
commit 8b7174ce38
2 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,14 @@
FROM hardcoreeng/base:v20250310
WORKDIR /usr/src/app
COPY package.json ./
# Install ws, since it is external dependency and it not included in the base image
RUN WS_VERSION=$(grep -o '"ws": *"[^"]*"' package.json | grep -o '[0-9][^"]*' | head -1) && \
if [ -z "$WS_VERSION" ]; then WS_VERSION="8.18.0"; fi && \
echo "Installing ws version: $WS_VERSION" && \
rm package.json && \
npm install --no-package-lock ws@$WS_VERSION
COPY bundle/bundle.js ./
EXPOSE 8087

View File

@ -14,7 +14,7 @@
"build": "compile",
"build:watch": "compile",
"test": "jest --passWithNoTests --silent",
"_phase:bundle": "rushx bundle --external=ws",
"_phase:bundle": "rushx bundle",
"_phase:docker-build": "rushx docker:build",
"_phase:docker-staging": "rushx docker:staging",
"bundle": "node ../../../common/scripts/esbuild.js --external=ws",