mirror of
https://github.com/Damillora/Rinze.git
synced 2024-11-22 03:37:33 +00:00
chore: fix build command
This commit is contained in:
parent
29955b4faa
commit
649bf4e207
26
Dockerfile
26
Dockerfile
@ -1,25 +1,15 @@
|
|||||||
FROM node:14
|
FROM node:16-alpine
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm
|
||||||
COPY package.json pnpm-lock.yaml ./
|
|
||||||
RUN pnpm install
|
|
||||||
|
|
||||||
# Copy all local files into the image.
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN pnpm install
|
||||||
RUN yarn build
|
RUN pnpm build
|
||||||
|
FROM node:16-alpine
|
||||||
###
|
|
||||||
# Only copy over the Node pieces we need
|
|
||||||
# ~> Saves 35MB
|
|
||||||
###
|
|
||||||
FROM node:14-slim
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=0 /app .
|
COPY --from=0 /app/build /app
|
||||||
COPY . .
|
COPY --from=0 /app/package.json /app
|
||||||
|
COPY --from=0 /app/node_modules /app/node_modules
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["node", "./build"]
|
CMD ["node","./index.js"]
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
"build": "svelte-kit build",
|
"build": "vite build",
|
||||||
"preview": "svelte-kit preview",
|
"preview": "vite preview",
|
||||||
"lint": "prettier --check . && eslint --ignore-path .gitignore .",
|
"lint": "prettier --check . && eslint --ignore-path .gitignore .",
|
||||||
"format": "prettier --write ."
|
"format": "prettier --write ."
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user