Merge branch 'main' of https://git.kerboul.me/anto/XIP
Some checks failed
Deploy XIP / deploy (push) Failing after 1s
Some checks failed
Deploy XIP / deploy (push) Failing after 1s
This commit is contained in:
17
frontend/Dockerfile
Normal file
17
frontend/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
# XIP frontend — Vue 3 + Vite, built to static assets and served by nginx.
|
||||
# Build context is the repo ROOT (see docker-compose.prod.yml).
|
||||
FROM oven/bun:1-debian AS build
|
||||
WORKDIR /app
|
||||
COPY frontend/package.json ./
|
||||
RUN bun install
|
||||
COPY frontend/ ./
|
||||
# Baked at build time. Must be the public absolute origin so the WebSocket URL
|
||||
# (derived as API_URL.replace(/^http/,'ws') + '/ws') becomes wss://xip.kerboul.me/ws.
|
||||
ARG VITE_API_URL=https://xip.kerboul.me
|
||||
ENV VITE_API_URL=$VITE_API_URL
|
||||
RUN bun run build
|
||||
|
||||
FROM nginx:1.27-alpine AS runtime
|
||||
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user