mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-09 09:20:54 +00:00
UBERF-10599: Fix ws not found in gmail
Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
parent
5ee8cc8027
commit
8b7174ce38
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user