chore: switch web back to node
All checks were successful
ci / docker (api) (push) Successful in 2m16s
ci / docker (web) (push) Successful in 4m50s

This commit is contained in:
Tine Jozelj 2023-09-11 14:33:16 +02:00
parent 28e60b3d29
commit 864a87f6f5
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
6 changed files with 15869 additions and 13 deletions

View file

@ -14,8 +14,8 @@ $ bun start
``` ```
$ cd web $ cd web
$ bun install $ npm install
$ bun start $ npm start
``` ```
### Translation ### Translation
@ -23,8 +23,8 @@ $ bun start
``` ```
$ cd web $ cd web
$ bun install $ npm install
$ bun run write-translations $ npm run write-translations
``` ```
2. You can now edit the `i18n/sl` translations. (todo: not sure how this works yet) 2. You can now edit the `i18n/sl` translations. (todo: not sure how this works yet)

View file

@ -1,17 +1,18 @@
FROM oven/bun as build FROM node:lts as build
WORKDIR /app # Reduce npm log spam and colour during install within Docker
ENV NPM_CONFIG_LOGLEVEL=warn
ENV NPM_CONFIG_COLOR=false
ADD package.json package.json WORKDIR /home/node/app
ADD bun.lockb bun.lockb
RUN bun install COPY --chown=node:node . /home/node/app/
ADD . . RUN npm install
RUN npm run typecheck
RUN bun run build RUN npm run build
FROM nginx:stable as production FROM nginx:stable as production
WORKDIR /app WORKDIR /home/node/app
# Copy what we've installed/built from production # Copy what we've installed/built from production
COPY --chown=nobody:nogroup --from=build /home/node/app/build /usr/share/nginx/html/ COPY --chown=nobody:nogroup --from=build /home/node/app/build /usr/share/nginx/html/

Binary file not shown.

15852
web/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -12,6 +12,7 @@
"serve": "docusaurus serve", "serve": "docusaurus serve",
"write-translations": "docusaurus write-translations", "write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids", "write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc",
"build:docker": "docker build -t tjo-space ." "build:docker": "docker build -t tjo-space ."
}, },
"dependencies": { "dependencies": {

View file

@ -2,6 +2,8 @@
// This file is not used in compilation. It is here just for a nice editor experience. // This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@tsconfig/docusaurus/tsconfig.json", "extends": "@tsconfig/docusaurus/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"moduleResolution": "Node16",
"module": "Node16",
"baseUrl": "." "baseUrl": "."
} }
} }