Files
llink/js/desktop/Dockerfile
T
Arjun Patel 64f02d1c3b feat: ship a web app (#218)
* feat(orion): add endpoint for link metadata

* refactor: cleanup comments

* wip: plumbing for building a web app

* setup deployment materials for web app

* fix(web): favicon
2026-05-26 15:37:35 -07:00

18 lines
444 B
Docker

# Two-stage build for the llink web SPA. APP_ENV is baked into the bundle
# at build time via vite's `define` (see vite.env.ts).
FROM node:22-alpine AS builder
WORKDIR /app
ARG APP_ENV=prod
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
COPY . .
RUN APP_ENV=$APP_ENV yarn web:build:ci
FROM nginx:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist-web /usr/share/nginx/html
EXPOSE 80