Files
tasknote/client/Dockerfile
T
rmcamposGitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>snyk-bot
4538151871 feat: add new UI (#291)
* feat: implement new ui for tasks

issue #199

* feat: enable tasks to manage urls

* feat: add sidebar and remove header - wip

issue #199

time spent: 01h07m

* feat: sidebar improvements - wip

issue #199

* feat: side menu - partial

* feat: sidebar finished

* feat: sidebar finished

* feat: dashboard initial

* feat: new about page design

issue #199

* build(deps-dev): bump vitest and @vitest/coverage-v8 in /client

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) and [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8). These dependencies needed to be updated together.

Updates `vitest` from 3.0.4 to 3.0.5
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v3.0.5/packages/vitest)

Updates `@vitest/coverage-v8` from 3.0.4 to 3.0.5
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v3.0.5/packages/coverage-v8)

---
updated-dependencies:
- dependency-name: vitest
  dependency-type: direct:development
- dependency-name: "@vitest/coverage-v8"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: deprecated element and response for 201

* feat: home page almost finished

issue #199

* build(deps-dev): bump eslint-plugin-jsdoc in /client

Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 50.6.1 to 50.6.3.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v50.6.1...v50.6.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump eslint-config-prettier in /client

Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 9.1.0 to 10.0.1.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v9.1.0...v10.0.1)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): bump vite from 6.0.11 to 6.1.0 in /client

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.0.11 to 6.1.0.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@6.1.0/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump @eslint/js from 9.17.0 to 9.20.0 in /client

Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.17.0 to 9.20.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/commits/v9.20.0/packages/js)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: upgrade react-router from 7.1.1 to 7.1.3

Snyk has created this PR to upgrade react-router from 7.1.1 to 7.1.3.

See this package in npm:
react-router

See this project in Snyk:
https://app.snyk.io/org/ricardocampos-dcn/project/4d31651d-a849-4b8a-83a3-f8aaba677c53?utm_source=github&utm_medium=referral&page=upgrade-pr

* fix: upgrade react-bootstrap from 2.10.7 to 2.10.8

Snyk has created this PR to upgrade react-bootstrap from 2.10.7 to 2.10.8.

See this package in npm:
react-bootstrap

See this project in Snyk:
https://app.snyk.io/org/ricardocampos-dcn/project/4d31651d-a849-4b8a-83a3-f8aaba677c53?utm_source=github&utm_medium=referral&page=upgrade-pr

* test: add test cases

issue #199

* test: add TaskUrlRepository data tests

issue #199

* test: add TaskService unit tests and fix intentionality Sonar issue

issue #199

* ci: attempt to fix sonar analysis and add badges

* ci: change pr and main workflows server tests

* chore: fix lint issues in the front-end

issue #199

* test: fix test cases for views and components

* chore: fix lint issues

* ci: update node version when running tests

* test: add taskTimeLeft test case

* chore: fix css rule according to css specifications

* chore: address sonar issues

* chore: address sonar issues again

* test: add Sidebar unit tests

* fix: client/Dockerfile to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-8690013
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-8690013
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-8235201
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-8235201

* chore: refactor and improve taskTag component and tests

* chore: improve the taskTitle component and add tests

* chore: improve taskUrl component and add test cases

* test: add count view tests

* test: add count view tests files

* test: add taskAdd tests

* test: fix task add

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2025-02-22 16:29:54 -03:00

33 lines
796 B
Docker

# Build static files
# Node Bullseye has npm
FROM node:20.17-bullseye-slim AS build
ENV NODE_OPTIONS="--max-old-space-size=3072"
# Build
WORKDIR /app
COPY *.html *.json *.ts ./
COPY ./src ./src
COPY ./public ./public
RUN npm ci --ignore-scripts --no-update-notifier --omit=dev && \
npm run build && \
rm -rf node_modules
# Deploy container
# Caddy serves static files
FROM caddy:2.9.1-alpine
RUN apk add --no-cache ca-certificates curl
# Receive build number as argument, retain as environment variable
ARG BUILD
ENV BUILD=${BUILD}
# Copy files and run formatting
COPY --from=build /app/dist/ /app/dist
COPY Caddyfile /etc/caddy/Caddyfile
RUN caddy fmt --overwrite /etc/caddy/Caddyfile
# User, port and healthcheck
EXPOSE 5000
HEALTHCHECK CMD curl -f http://localhost:5000
USER 1001