Skip to content

Commit

Permalink
Switch to Base images (#7654)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Sobolev <[email protected]>
  • Loading branch information
haiodo authored Jan 14, 2025
1 parent 582766b commit 379c927
Show file tree
Hide file tree
Showing 51 changed files with 88 additions and 714 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.13
v22
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@
"sourceMaps": true,
"cwd": "${workspaceRoot}/services/github/pod-github",
"protocol": "inspector",
"attachSimplePort": 0,
"outputCapture": "std"
},
{
Expand Down
86 changes: 59 additions & 27 deletions common/scripts/install-run.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dev/base-image/rekoni.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apt-get install -y \
poppler-utils \
html2text \
unrtf
RUN npm install --ignore-scripts=false --verbose sharp@v0.30.2 [email protected] --unsafe-perm
RUN npm install --ignore-scripts=false --verbose sharp@v0.32.6 [email protected] --unsafe-perm
3 changes: 1 addition & 2 deletions dev/import-tool/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM node:20

FROM hardcoreeng/base:v20250113a
WORKDIR /usr/src/app

COPY bundle/bundle.js ./
Expand Down
5 changes: 1 addition & 4 deletions dev/tool/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
FROM node:20

FROM hardcoreeng/base
WORKDIR /usr/src/app

RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy msgpackr msgpackr-extract --unsafe-perm

COPY bundle/bundle.js ./

CMD [ "bash" ]
12 changes: 1 addition & 11 deletions pods/account/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
FROM node:20

FROM hardcoreeng/base:v20250113a
WORKDIR /usr/src/app

RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm

RUN apt-get update
RUN apt-get install libjemalloc2
RUN apt-get clean

ENV LD_PRELOAD=libjemalloc.so.2
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true

COPY bundle/bundle.js ./

EXPOSE 3000
Expand Down
12 changes: 1 addition & 11 deletions pods/backup/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@

FROM node:20

FROM hardcoreeng/base:v20250113a
WORKDIR /usr/src/app

RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm

RUN apt-get update
RUN apt-get install libjemalloc2
RUN apt-get clean

ENV LD_PRELOAD=libjemalloc.so.2
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true

COPY bundle/bundle.js ./
COPY bundle/bundle.js.map ./
COPY bundle/model.json ./
Expand Down
11 changes: 1 addition & 10 deletions pods/collaborator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@

FROM node:20

FROM hardcoreeng/base:v20250113a
WORKDIR /usr/src/app
RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm

RUN apt-get update
RUN apt-get install libjemalloc2
RUN apt-get clean

ENV LD_PRELOAD=libjemalloc.so.2
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true

COPY bundle/bundle.js ./
COPY bundle/bundle.js.map ./
Expand Down
13 changes: 1 addition & 12 deletions pods/front/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
FROM node:20

ENV NODE_ENV production

FROM hardcoreeng/front-base:v20250113a
WORKDIR /app
RUN npm install --ignore-scripts=false --verbose [email protected] bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm

RUN apt-get update
RUN apt-get install libjemalloc2
RUN apt-get clean

ENV LD_PRELOAD=libjemalloc.so.2
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true

COPY bundle/bundle.js ./
COPY bundle/bundle.js.map ./
Expand Down
12 changes: 1 addition & 11 deletions pods/fulltext/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@

FROM node:20

FROM hardcoreeng/base:v20250113a
WORKDIR /usr/src/app

RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm

RUN apt-get update
RUN apt-get install libjemalloc2
RUN apt-get clean

ENV LD_PRELOAD=libjemalloc.so.2
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true

COPY bundle/bundle.js ./
COPY bundle/bundle.js.map ./
COPY bundle/model.json ./
Expand Down
11 changes: 1 addition & 10 deletions pods/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
FROM node:20

FROM hardcoreeng/base:v20250113a
WORKDIR /usr/src/app
RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy msgpackr msgpackr-extract --unsafe-perm

RUN apt-get update
RUN apt-get install libjemalloc2
RUN apt-get clean

ENV LD_PRELOAD=libjemalloc.so.2
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true

COPY bundle/model.json ./
COPY bundle/bundle.js ./
Expand Down
10 changes: 1 addition & 9 deletions pods/stats/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
FROM node:20

FROM hardcoreeng/base:v20250113a
WORKDIR /usr/src/app

RUN apt-get update
RUN apt-get install libjemalloc2
RUN apt-get clean

ENV LD_PRELOAD=libjemalloc.so.2
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true

COPY bundle/bundle.js ./

EXPOSE 4900
Expand Down
12 changes: 1 addition & 11 deletions pods/workspace/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
FROM node:20

FROM hardcoreeng/base:v20250113a
WORKDIR /usr/src/app

RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm

RUN apt-get update
RUN apt-get install libjemalloc2
RUN apt-get clean

ENV LD_PRELOAD=libjemalloc.so.2
ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true

COPY bundle/bundle.js ./
COPY bundle/bundle.js.map ./

Expand Down
1 change: 0 additions & 1 deletion products/tracker/.browserslistrc

This file was deleted.

5 changes: 0 additions & 5 deletions products/tracker/.env

This file was deleted.

4 changes: 0 additions & 4 deletions products/tracker/.env-prod

This file was deleted.

3 changes: 0 additions & 3 deletions products/tracker/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions products/tracker/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions products/tracker/config.json

This file was deleted.

Loading

0 comments on commit 379c927

Please sign in to comment.