Initial commit by AI Generator
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM node:20-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
1
index.html
Normal file
1
index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html><head><meta charset="UTF-8"/><title>App</title><style>body{margin:0;font-family:sans-serif;background:#f9f9f9;}</style></head><body><div id="root"></div><script type="module" src="/src/main.jsx"></script></body></html>
|
||||
10
nginx.conf
Normal file
10
nginx.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/json application/javascript;
|
||||
}
|
||||
1
package.json
Normal file
1
package.json
Normal file
@@ -0,0 +1 @@
|
||||
{"name":"pending-app","version":"1.0.0","type":"module","scripts":{"dev":"vite","build":"vite build"},"dependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"devDependencies":{"vite":"^5.0.0","@vitejs/plugin-react":"^4.0.0"}}
|
||||
1
src/App.jsx
Normal file
1
src/App.jsx
Normal file
@@ -0,0 +1 @@
|
||||
import React from 'react';export default function App(){const n="{{ Nazwa }}",d="{{ Opis }}",s="{{ Styl }}",f="{{ Funkcje }}".split(", ");return(<div style={{padding:40,maxWidth:600,margin:'auto',fontFamily:'system-ui',color:'#333'}}><h1>{n}</h1><p>{d}</p><ul>{f.map(x=><li key={x}>{x}</li>)}</ul><hr style:{{border:'none',borderTop:'1px solid #eee'}}/><p><em>Style: {s}</em></div>);}
|
||||
1
src/main.jsx
Normal file
1
src/main.jsx
Normal file
@@ -0,0 +1 @@
|
||||
import React from 'react';import ReactDOM from 'react-dom/client';import App from './App.jsx';ReactDOM.createRoot(document.getElementById('root')).render(<App />);
|
||||
1
vite.config.js
Normal file
1
vite.config.js
Normal file
@@ -0,0 +1 @@
|
||||
import {defineConfig} from 'vite';import react from '@vitejs/plugin-react';export default defineConfig({plugins:[react()]});
|
||||
Reference in New Issue
Block a user