ADD: renovate readme

This commit is contained in:
pqdong 2025-05-06 14:25:42 +08:00
parent 11be4d032c
commit 1f428d631a
3 changed files with 30 additions and 3 deletions

18
DockerfileWithToken Normal file
View file

@ -0,0 +1,18 @@
# build stage
FROM node:lts-alpine AS build-stage
# Set environment variables for non-interactive npm installs
ENV NPM_CONFIG_LOGLEVEL warn
ENV CI true
ENV VITE_TOKEN "your_token"
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN npm install -g pnpm && pnpm i --frozen-lockfile
COPY . .
RUN pnpm build
# production stage
FROM nginx:stable-alpine AS production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]