diff --git a/.dockerignore b/.dockerignore index 2d40b70..d36f4f4 100644 --- a/.dockerignore +++ b/.dockerignore @@ -14,9 +14,10 @@ README.md # Docker Dockerfile +.dockerignore # License LICENSE # Vscode -.vscode \ No newline at end of file +.vscode diff --git a/.prettierignore b/.prettierignore index 4400aea..08fbd4a 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,3 @@ node_modules -README.md \ No newline at end of file +README.md +.dockerignore \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ebe1eda..6b4bca3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ -FROM node:20.14.0-alpine3.20 +FROM node:20.15.0-alpine3.20 +RUN adduser -D -g '' fadi WORKDIR /app -COPY package.json . -RUN npm i --ignore-scripts -g rimraf -RUN yarn --ignore-scripts +COPY yarn.lock package.json . +RUN npm i --silent --ignore-scripts -g rimraf +RUN yarn --silent --ignore-scripts COPY . . +USER fadi EXPOSE 3000 CMD yarn dev diff --git a/package.json b/package.json index 90eae37..2669308 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-react-refresh": "^0.4.7", "husky": "^9.0.11", + "prettier": "^3.3.2", "typescript": "^5.4.5", "typescript-eslint": "^7.12.0", "vite": "^5.2.12" diff --git a/yarn.lock b/yarn.lock index 54456c5..bf0a8e7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2162,6 +2162,11 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== +prettier@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.2.tgz#03ff86dc7c835f2d2559ee76876a3914cec4a90a" + integrity sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA== + prop-types@^15.8.1: version "15.8.1" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"