Claptrap-ui/Dockerfile
Renovate e0fc5dc110
All checks were successful
ci / docker (pull_request) Successful in 57s
⬆️ Update Node.js to v22
2024-10-29 02:08:39 +00:00

30 lines
761 B
Docker

FROM node:22 AS builder
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN corepack enable
RUN pnpm install
COPY . .
RUN pnpm build
# nginx state for serving content
FROM nginx:alpine
# Set working directory to nginx asset directory
WORKDIR /usr/share/nginx/html
# Remove default nginx static assets
RUN rm -rf ./*
# Copy static assets from builder stage
COPY --from=builder /app/dist .
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
# Containers run nginx with global directives and daemon off
ENTRYPOINT ["nginx", "-g", "daemon off;"]
LABEL \
org.label-schema.name="Claptrap Bot" \
org.label-schema.url="https://claptrapbot.com" \
org.label-schema.vcs-url="https://git.sebclem.fr/sebclem/Claptrap-ui" \
org.label-schema.vendor="Sebclem"