Switching The Build Step To Node

This commit is contained in:
Annika Merris 2024-02-05 09:29:33 -05:00
parent 238e61e334
commit 670b8ab50c

View file

@ -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