Skip to content

Commit

Permalink
feat: dockerize
Browse files Browse the repository at this point in the history
  • Loading branch information
verekia committed Nov 4, 2024
1 parent 2b922bd commit 31da969
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.next
node_modules
out

.git
.gitignore

.github
.vscode

.env.local
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:22.11.0-alpine3.20

WORKDIR /app

COPY package.json package-lock.json .
COPY examples/react/package.json examples/react/package.json
COPY examples/vue/package.json examples/vue/package.json
COPY examples/svelte/package.json examples/svelte/package.json
COPY examples/vanilla/package.json examples/vanilla/package.json
COPY website/package.json website/package.json
COPY packages/core/package.json packages/core/package.json
COPY packages/react/package.json packages/react/package.json
COPY packages/svelte/package.json packages/svelte/package.json
COPY packages/vue/package.json packages/vue/package.json
COPY packages/vanilla/package.json packages/vanilla/package.json

RUN npm i

COPY . .

RUN npm run build && npm run build-examples && npm run build-website

CMD ["npm", "run", "website"]

0 comments on commit 31da969

Please sign in to comment.