mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
wtf it works??
This commit is contained in:
parent
caac5027f2
commit
de1e79ee6d
|
|
@ -10,18 +10,12 @@ COPY --from=node:18-alpine /usr/local/bin/node /usr/local/bin/node
|
||||||
# install dependencies into temp directory
|
# install dependencies into temp directory
|
||||||
# this will cache them and speed up future builds
|
# this will cache them and speed up future builds
|
||||||
FROM base AS install
|
FROM base AS install
|
||||||
RUN mkdir -p /temp/dev
|
|
||||||
COPY package.json bun.lockb /temp/dev/
|
|
||||||
RUN cd /temp/dev && bun install --frozen-lockfile
|
|
||||||
|
|
||||||
# install with --production (exclude devDependencies)
|
# install with --production (exclude devDependencies)
|
||||||
RUN mkdir -p /temp/prod
|
RUN mkdir -p /temp/prod
|
||||||
COPY . /temp/prod/
|
COPY . /temp/prod/
|
||||||
RUN cd /temp/prod && bun install --frozen-lockfile --production.
|
RUN cd /temp/prod && bun install --frozen-lockfile --production.
|
||||||
|
|
||||||
# Generate Prisma
|
|
||||||
RUN cd /temp/prod && bunx prisma generate
|
|
||||||
|
|
||||||
# Build Vite in pages
|
# Build Vite in pages
|
||||||
RUN cd /temp/prod && bunx --bun vite build pages
|
RUN cd /temp/prod && bunx --bun vite build pages
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue