Files
thekhalidsha 2edab3b8bc
CI / check (push) Successful in 1m28s
Link the package to its public repository
The repo moved from a local Gitea to a public one at
git.openkhalix.com, renamed ui-showcase to tansy-ui. Add the
repository and bugs fields so the npm page links to the source and
its issue tracker, and record it under Unreleased for 0.4.1.
2026-09-29 11:15:01 +05:30

38 lines
1.1 KiB
Docker

# syntax=docker/dockerfile:1
FROM node:26-alpine AS build
WORKDIR /app
# Workspace manifests first, so dependency installs cache between builds.
COPY package.json package-lock.json ./
COPY packages/ui/package.json packages/ui/
COPY packages/brand/package.json packages/brand/
COPY apps/site/package.json apps/site/
COPY apps/docs/package.json apps/docs/
RUN npm ci
COPY . .
RUN npm run lint \
&& npm test \
&& npm run build
FROM nginx:1.29-alpine AS runtime
LABEL org.opencontainers.image.title="Tansy UI" \
org.opencontainers.image.description="Landing page and Storybook for the Tansy UI React component kit" \
org.opencontainers.image.source="https://git.openkhalix.com/thekhalidsha/tansy-ui" \
org.opencontainers.image.licenses="MIT"
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/apps/site/dist /usr/share/nginx/html
COPY --from=build /app/apps/docs/storybook-static /usr/share/nginx/html/docs
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1/ || exit 1
CMD ["nginx", "-g", "daemon off;"]