-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump versions, remove yarn usage
- Loading branch information
Pavel Ageev
committed
Jan 30, 2024
1 parent
332c6e0
commit cbdbc29
Showing
9 changed files
with
10,117 additions
and
6,256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
!jest.config.js | ||
!jsconfig.json | ||
!package.json | ||
!yarn.lock | ||
!package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,4 @@ | |
/storage_tmp/ | ||
.env | ||
*.tgz | ||
/yarn-error.log | ||
docker-compose.override.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
Vyacheslav Artemiev <[email protected]> | ||
Alexei Kochetov <[email protected]> | ||
Ruslan Burkhanov <[email protected]> | ||
Daniil Mikhailov <[email protected]> | ||
Konstantin Sergievskiy <[email protected]> | ||
Aleksey Shirokih <[email protected]> | ||
Lev Galaktionov <[email protected]> | ||
Nikita Popov <[email protected]> | ||
Pavel Ageev <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,38 @@ | ||
ARG NODE_VERSION=20.6 | ||
ARG NODE_VERSION=21.6 | ||
|
||
FROM node:${NODE_VERSION} as vendor | ||
|
||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json /app | ||
COPY yarn.lock /app | ||
COPY package-lock.json /app | ||
|
||
RUN yarn install --frozen-lockfile --production=true | ||
RUN npm ci --omit dev | ||
|
||
FROM node:${NODE_VERSION} | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
chromium \ | ||
chromium-sandbox && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* || true | ||
|
||
ARG CHROMIUM_VERSION=121.0.6167.85-1~deb12u1 | ||
ENV CHROMIUM_VERSION=${CHROMIUM_VERSION} | ||
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium | ||
|
||
RUN apt update && \ | ||
apt install -y --no-install-recommends \ | ||
chromium=${CHROMIUM_VERSION} \ | ||
chromium-sandbox=${CHROMIUM_VERSION} && \ | ||
apt clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* || true | ||
|
||
USER node | ||
WORKDIR /app | ||
|
||
COPY jsconfig.json /app | ||
COPY package.json /app | ||
COPY package-lock.json /app | ||
COPY --chown=node:node src /app/src | ||
COPY --chown=node:node data /app/data | ||
RUN chown node:node /app | ||
COPY --from=vendor --chown=node:node /app/node_modules /app/node_modules | ||
|
||
COPY --from=vendor /app/node_modules /app/node_modules | ||
|
||
USER node | ||
ENTRYPOINT ["/app/src/cli.js"] |
Oops, something went wrong.