mirror of
https://forgejo.merr.is/annika/isl-vue3.git
synced 2025-12-11 12:26:36 -05:00
Switching The Build Step To Node
This commit is contained in:
parent
238e61e334
commit
670b8ab50c
1 changed files with 4 additions and 2 deletions
|
|
@ -16,14 +16,16 @@ RUN cd /temp/prod && bun install --frozen-lockfile --production
|
|||
|
||||
# copy node_modules from temp directory
|
||||
# then copy all (non-ignored) project files into the image
|
||||
FROM base AS prerelease
|
||||
FROM node:21-bookworm AS prerelease
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=install /temp/prod/node_modules node_modules
|
||||
COPY . .
|
||||
|
||||
# I don't have any tests, I am bad.
|
||||
ENV NODE_ENV=production
|
||||
RUN cat -e vite.config.ts
|
||||
RUN bunx --bun vite build --debug true --logLevel info
|
||||
RUN npx vite build
|
||||
|
||||
# Copy the distribution folder into the final image.
|
||||
FROM nginx:stable-alpine as release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue