mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-23 22:22:07 -05:00
feat: "modernise" Docker image and use alpine
This commit is contained in:
parent
f3cf4f01ca
commit
b2a9cfd987
6 changed files with 89 additions and 30 deletions
|
@ -5,3 +5,6 @@ dist_injected
|
|||
node_modules
|
||||
.env
|
||||
.env.local
|
||||
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
|
|
28
.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
vendored
Normal file
28
.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
vendored
Normal file
File diff suppressed because one or more lines are too long
10
.yarnrc.yml
10
.yarnrc.yml
|
@ -1,9 +1,11 @@
|
|||
nodeLinker: node-modules
|
||||
|
||||
plugins:
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||
spec: "@yarnpkg/plugin-interactive-tools"
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
|
||||
spec: "@yarnpkg/plugin-typescript"
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||
spec: "@yarnpkg/plugin-interactive-tools"
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
|
||||
spec: "@yarnpkg/plugin-typescript"
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
|
||||
spec: "@yarnpkg/plugin-workspace-tools"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-3.2.0.cjs
|
||||
|
|
11
Dockerfile
11
Dockerfile
|
@ -1,18 +1,15 @@
|
|||
FROM node:16-buster AS builder
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY package*.json ./
|
||||
|
||||
RUN yarn --no-cache
|
||||
|
||||
COPY . .
|
||||
COPY .env.build .env
|
||||
RUN yarn add --dev @babel/plugin-proposal-decorators
|
||||
|
||||
RUN yarn install --frozen-lockfile
|
||||
RUN yarn typecheck
|
||||
RUN yarn build:highmem
|
||||
RUN npm prune --production
|
||||
RUN yarn workspaces focus --production --all
|
||||
|
||||
FROM node:16-buster
|
||||
FROM node:16-alpine
|
||||
WORKDIR /usr/src/app
|
||||
COPY --from=builder /usr/src/app .
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
"vite": "^2.6.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/plugin-proposal-decorators": "^7.16.7",
|
||||
"@babel/plugin-proposal-decorators": "^7.17.9",
|
||||
"@fontsource/atkinson-hyperlegible": "^4.4.5",
|
||||
"@fontsource/comic-neue": "^4.4.5",
|
||||
"@fontsource/fira-code": "^4.4.5",
|
||||
|
|
65
yarn.lock
65
yarn.lock
|
@ -234,20 +234,20 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/helper-create-class-features-plugin@npm:^7.16.7":
|
||||
version: 7.16.7
|
||||
resolution: "@babel/helper-create-class-features-plugin@npm:7.16.7"
|
||||
"@babel/helper-create-class-features-plugin@npm:^7.17.9":
|
||||
version: 7.17.9
|
||||
resolution: "@babel/helper-create-class-features-plugin@npm:7.17.9"
|
||||
dependencies:
|
||||
"@babel/helper-annotate-as-pure": ^7.16.7
|
||||
"@babel/helper-environment-visitor": ^7.16.7
|
||||
"@babel/helper-function-name": ^7.16.7
|
||||
"@babel/helper-member-expression-to-functions": ^7.16.7
|
||||
"@babel/helper-function-name": ^7.17.9
|
||||
"@babel/helper-member-expression-to-functions": ^7.17.7
|
||||
"@babel/helper-optimise-call-expression": ^7.16.7
|
||||
"@babel/helper-replace-supers": ^7.16.7
|
||||
"@babel/helper-split-export-declaration": ^7.16.7
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.0.0
|
||||
checksum: 55f4eccb93ce12c3a5d9acadf8176ed26a6f02db12d3b2d1a7337bb81139677c7b6fb54ddc01c160895e1f8134946b3bebe59428ef3a7cd9b62692bd3a2c654f
|
||||
checksum: db7be8852096084883dbbd096f925976695e5b34919a888fded9fd359d75d9994960e459f4eeb51ff6700109f83be6c1359e57809deb3fe36fc589b2a208b6d7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -321,6 +321,16 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/helper-function-name@npm:^7.17.9":
|
||||
version: 7.17.9
|
||||
resolution: "@babel/helper-function-name@npm:7.17.9"
|
||||
dependencies:
|
||||
"@babel/template": ^7.16.7
|
||||
"@babel/types": ^7.17.0
|
||||
checksum: a59b2e5af56d8f43b9b0019939a43774754beb7cb01a211809ca8031c71890999d07739e955343135ec566c4d8ff725435f1f60fb0af3bb546837c1f9f84f496
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/helper-get-function-arity@npm:^7.14.5":
|
||||
version: 7.14.5
|
||||
resolution: "@babel/helper-get-function-arity@npm:7.14.5"
|
||||
|
@ -375,6 +385,15 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/helper-member-expression-to-functions@npm:^7.17.7":
|
||||
version: 7.17.7
|
||||
resolution: "@babel/helper-member-expression-to-functions@npm:7.17.7"
|
||||
dependencies:
|
||||
"@babel/types": ^7.17.0
|
||||
checksum: 70f361bab627396c714c3938e94a569cb0da522179328477cdbc4318e4003c2666387ad4931d6bd5de103338c667c9e4bbe3e917fc8c527b3f3eb6175b888b7d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/helper-module-imports@npm:^7.0.0, @babel/helper-module-imports@npm:^7.10.4, @babel/helper-module-imports@npm:^7.12.13, @babel/helper-module-imports@npm:^7.14.5":
|
||||
version: 7.14.5
|
||||
resolution: "@babel/helper-module-imports@npm:7.14.5"
|
||||
|
@ -700,16 +719,19 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/plugin-proposal-decorators@npm:^7.16.7":
|
||||
version: 7.16.7
|
||||
resolution: "@babel/plugin-proposal-decorators@npm:7.16.7"
|
||||
"@babel/plugin-proposal-decorators@npm:^7.17.9":
|
||||
version: 7.17.9
|
||||
resolution: "@babel/plugin-proposal-decorators@npm:7.17.9"
|
||||
dependencies:
|
||||
"@babel/helper-create-class-features-plugin": ^7.16.7
|
||||
"@babel/helper-create-class-features-plugin": ^7.17.9
|
||||
"@babel/helper-plugin-utils": ^7.16.7
|
||||
"@babel/plugin-syntax-decorators": ^7.16.7
|
||||
"@babel/helper-replace-supers": ^7.16.7
|
||||
"@babel/helper-split-export-declaration": ^7.16.7
|
||||
"@babel/plugin-syntax-decorators": ^7.17.0
|
||||
charcodes: ^0.2.0
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.0.0-0
|
||||
checksum: 1c1a658ad70f71c542f2b770849eaebaff0a12e1f12b9b4a994a2d26440cb44b7bd8b88987bc0252ea669d1cbf253d2da134975607e362cf14d5e3f2d11c966a
|
||||
checksum: a3d177b88843bf73d798e4b21c1b8146bd33fd19ab56e5ab379d6670db84e172570e73bcf5a4e5a83193cfea49fed3db0015454e78f30f46d25d256c6e65a7b3
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -896,14 +918,14 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/plugin-syntax-decorators@npm:^7.16.7":
|
||||
version: 7.16.7
|
||||
resolution: "@babel/plugin-syntax-decorators@npm:7.16.7"
|
||||
"@babel/plugin-syntax-decorators@npm:^7.17.0":
|
||||
version: 7.17.0
|
||||
resolution: "@babel/plugin-syntax-decorators@npm:7.17.0"
|
||||
dependencies:
|
||||
"@babel/helper-plugin-utils": ^7.16.7
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.0.0-0
|
||||
checksum: 4c8dacd8b612d24638394bc86df7f89f92f8a21e5c450be983f754003ffe72d70aebdb81456232df5ec2fc7ff4f7415489bc1f577a28c072c336fc4f9114b82a
|
||||
checksum: 745a3553c8ad4d2ea4805eaf50634cf0cb3036f1259fbfa1cd3cb04d685cec68b6f2f0b3ca1856091730e5aca630975283f9f910d87694141e81754fbc074a7a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -1663,7 +1685,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/types@npm:^7.8.3":
|
||||
"@babel/types@npm:^7.17.0, @babel/types@npm:^7.8.3":
|
||||
version: 7.17.0
|
||||
resolution: "@babel/types@npm:7.17.0"
|
||||
dependencies:
|
||||
|
@ -3298,6 +3320,13 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"charcodes@npm:^0.2.0":
|
||||
version: 0.2.0
|
||||
resolution: "charcodes@npm:0.2.0"
|
||||
checksum: 972443ed359d54382e721b9db0a298eb95c4c454386f7e98886586f433e1e6686225416114e6f6bb2e6ef3facc9ba3b4ab9946a56a180fe64ef67816a05d4fe4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"chokidar@npm:>=3.0.0 <4.0.0":
|
||||
version: 3.5.2
|
||||
resolution: "chokidar@npm:3.5.2"
|
||||
|
@ -3342,7 +3371,7 @@ __metadata:
|
|||
version: 0.0.0-use.local
|
||||
resolution: "client@workspace:."
|
||||
dependencies:
|
||||
"@babel/plugin-proposal-decorators": ^7.16.7
|
||||
"@babel/plugin-proposal-decorators": ^7.17.9
|
||||
"@fontsource/atkinson-hyperlegible": ^4.4.5
|
||||
"@fontsource/bitter": ^4.5.0
|
||||
"@fontsource/comic-neue": ^4.4.5
|
||||
|
|
Loading…
Reference in a new issue