Docker и хостинг

This commit is contained in:
grinikita 2025-06-12 16:02:55 +03:00
parent 53428c5415
commit 47e7271224
5 changed files with 6714 additions and 1 deletions

4
.dockerignore Normal file
View File

@ -0,0 +1,4 @@
Dockerfile
eslint.config.mjs
.prettierrc
node_modules

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM node:23.11.1-alpine3.22 as build
WORKDIR ~/app
COPY ./ ./
RUN npm i
COPY src tsconfig.json webpack.config.js @types ./
RUN npm run build
FROM nginx:latest
COPY --from=build ~/app/dist /usr/share/nginx/html
EXPOSE 8080:80

6692
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,6 +12,7 @@
"license": "ISC", "license": "ISC",
"description": "", "description": "",
"dependencies": { "dependencies": {
"@reduxjs/toolkit": "^2.8.2",
"fork-ts-checker-webpack-plugin": "^9.1.0", "fork-ts-checker-webpack-plugin": "^9.1.0",
"handlebars-loader": "^1.7.3", "handlebars-loader": "^1.7.3",
"install": "^0.13.0", "install": "^0.13.0",
@ -39,6 +40,7 @@
"eslint-config-prettier": "^10.1.2", "eslint-config-prettier": "^10.1.2",
"eslint-plugin-prettier": "^5.2.6", "eslint-plugin-prettier": "^5.2.6",
"eslint-plugin-react": "^7.37.5", "eslint-plugin-react": "^7.37.5",
"firebase-tools": "^14.6.0",
"globals": "^16.0.0", "globals": "^16.0.0",
"html-webpack-plugin": "^5.6.3", "html-webpack-plugin": "^5.6.3",
"prettier": "3.5.3", "prettier": "3.5.3",

View File

@ -6,7 +6,6 @@ const CreatePage = (): React.ReactElement | string => {
const { const {
register, register,
handleSubmit, handleSubmit,
watch,
formState: { errors }, formState: { errors },
} = useForm({ } = useForm({
mode: 'onBlur', mode: 'onBlur',