feat: improve page readability, add thumbnail switcher, CI/CD config
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
- Improve spacing and typography on product intro and scenarios pages - Add thumbnail click switching for architecture hardware showcase - Fix thumbnail click target and z-index overlap issues - Add .woodpecker.yml, Dockerfile, and docker-compose.yml for CI/CD - Set Vite base path to /lnbox/ for sub-path deployment
This commit is contained in:
30
Dockerfile
Normal file
30
Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM node:22-alpine as builder
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm install pnpm -g
|
||||
|
||||
RUN pnpm install
|
||||
|
||||
RUN pnpm build
|
||||
|
||||
FROM nginx:1.26
|
||||
|
||||
COPY --from=0 /usr/src/app/dist /usr/share/nginx/html/lnbox
|
||||
|
||||
RUN echo "server {\
|
||||
listen 80;\
|
||||
server_name localhost;\
|
||||
location / {\
|
||||
return 301 /lnbox/;\
|
||||
}\
|
||||
location /lnbox {\
|
||||
alias /usr/share/nginx/html/lnbox;\
|
||||
index index.html index.htm;\
|
||||
try_files \$uri \$uri/ /lnbox/index.html;\
|
||||
}\
|
||||
}" > /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user