Migrate to host attachment.
This commit is contained in:
parent
16eb5d3775
commit
533e223a39
2 changed files with 9 additions and 14 deletions
|
|
@ -1,15 +1,9 @@
|
||||||
FROM node:23-alpine
|
FROM node:23-alpine
|
||||||
|
|
||||||
COPY . /codered-astra
|
WORKDIR /app
|
||||||
|
COPY package*.json ./
|
||||||
WORKDIR /codered-astra
|
RUN npm ci
|
||||||
|
COPY . .
|
||||||
RUN npm i
|
RUN npm run format && npm run build
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
CMD ["npm", "run", "preview"]
|
||||||
RUN npm run format
|
|
||||||
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
CMD ["npm", "run", "host"]
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,9 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"dev": "vite",
|
"dev": "vite --host 0.0.0.0 --port 3000",
|
||||||
"host": "vite host",
|
"host": "vite --host 0.0.0.0 --port 3000",
|
||||||
|
"preview": "vite preview --host 0.0.0.0 --port 3000",
|
||||||
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
||||||
"clean-dist": "find apps/ -type d -name 'dist' -print0 | xargs -r0 -- rm -r",
|
"clean-dist": "find apps/ -type d -name 'dist' -print0 | xargs -r0 -- rm -r",
|
||||||
"clean-all": "find apps/ -type d -name 'dist' -print0 | xargs -r0 -- rm -r && find . -path ./node_modules -prune -o -name 'node_modules' | xargs rm -rf "
|
"clean-all": "find apps/ -type d -name 'dist' -print0 | xargs -r0 -- rm -r && find . -path ./node_modules -prune -o -name 'node_modules' | xargs rm -rf "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue