Skip to content

Commit

Permalink
feat: add dashboard container
Browse files Browse the repository at this point in the history
  • Loading branch information
mari1912 committed Jul 2, 2024
1 parent 544d838 commit 575bfcd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
15 changes: 15 additions & 0 deletions collect_static/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM alpine:3.20

RUN export LANG=en_US.UTF-8 \
&& apk update \
&& apk upgrade \
&& apk add rsync \
&& rm -rf /var/cache/apk/*

WORKDIR /data

VOLUME ["/data/static/"]

COPY --from=dashboard:latest /dashboard/dist /files

CMD rsync -azvi --checksum --exclude='*.map' /files/ /data/static/
9 changes: 9 additions & 0 deletions dashboard/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:22.3-alpine

WORKDIR /dashboard

COPY package.json pnpm-lock.yaml ./
RUN npm install -g pnpm && pnpm install --frozen-lockfile

COPY . ./
RUN pnpm build

0 comments on commit 575bfcd

Please sign in to comment.