Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
FROM node:22-alpine AS build

WORKDIR /workspace/ui
WORKDIR /workspace

RUN corepack enable

COPY ui/package.json ui/pnpm-lock.yaml ./
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile

COPY ui/ ./
COPY . ./
RUN pnpm build

FROM nginxinc/nginx-unprivileged:1.27-alpine

USER root
RUN apk add --no-cache sed

COPY --from=build /workspace/ui/dist/ /usr/share/nginx/html/
COPY ui/nginx.conf /etc/nginx/conf.d/default.conf
COPY ui/entrypoint.sh /entrypoint.sh
COPY --from=build /workspace/dist/ /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY entrypoint.sh /entrypoint.sh
RUN chown -R 101:101 /usr/share/nginx/html /entrypoint.sh /etc/nginx/conf.d/default.conf

ENV SPRITZ_API_BASE_URL=/api
Expand Down
Loading