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
|
||||
|
||||
COPY . /codered-astra
|
||||
|
||||
WORKDIR /codered-astra
|
||||
|
||||
RUN npm i
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run format && npm run build
|
||||
EXPOSE 3000
|
||||
|
||||
RUN npm run format
|
||||
|
||||
RUN npm run build
|
||||
|
||||
CMD ["npm", "run", "host"]
|
||||
CMD ["npm", "run", "preview"]
|
||||
|
|
|
|||
|
|
@ -4,8 +4,9 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"dev": "vite",
|
||||
"host": "vite host",
|
||||
"dev": "vite --host 0.0.0.0 --port 3000",
|
||||
"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}\"",
|
||||
"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 "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue