Docker и хостинг
This commit is contained in:
parent
53428c5415
commit
47e7271224
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Dockerfile
|
||||||
|
eslint.config.mjs
|
||||||
|
.prettierrc
|
||||||
|
node_modules
|
16
Dockerfile
Normal file
16
Dockerfile
Normal 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
6692
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||||
|
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user