Logo
Explore Help
Register Sign In
carrot_bbs/frontend
3
0
Fork 0
You've already forked frontend
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
25194313aebbe44a1307fdafa83bf8a70e6d14c4
frontend/Dockerfile.web

17 lines
302 B
Docker
Raw Normal View History

ci: 增加前端构建发布流水线 新增 Gitea CI,覆盖 Android OTA 发布与校验、Android Release APK 打包,以及 Web Docker 镜像构建推送。 Made-with: Cursor
2026-03-17 15:04:12 +08:00
FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npx expo export --platform web --output-dir dist-web
FROM nginx:1.27-alpine
build(deploy): add nginx configuration for web application serving Add nginx.conf to serve the Expo web build and update Dockerfile.web to copy the configuration into the nginx container. This enables proper static file serving with appropriate MIME types and default caching headers for the production web deployment.
2026-04-04 00:15:51 +08:00
COPY nginx.conf /etc/nginx/conf.d/default.conf
ci: 增加前端构建发布流水线 新增 Gitea CI,覆盖 Android OTA 发布与校验、Android Release APK 打包,以及 Web Docker 镜像构建推送。 Made-with: Cursor
2026-03-17 15:04:12 +08:00
COPY --from=builder /app/dist-web /usr/share/nginx/html
EXPOSE 80
Reference in New Issue Copy Permalink
Powered by Gitea Version: 25.6.2 Page: 21ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API