mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Attempt to tweak Docker config (still doesnt work)
This commit is contained in:
parent
9577e08e73
commit
69f7c470f7
|
|
@ -3,9 +3,8 @@
|
||||||
FROM oven/bun:1.0.30-alpine as base
|
FROM oven/bun:1.0.30-alpine as base
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
RUN apk add vips
|
|
||||||
# Required for Prisma to work
|
# Required for Prisma to work
|
||||||
COPY --from=node:18-alpine /usr/local/bin/node /usr/local/bin/node
|
# 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
|
||||||
|
|
@ -15,15 +14,13 @@ FROM base AS install
|
||||||
RUN mkdir -p /temp
|
RUN mkdir -p /temp
|
||||||
COPY . /temp
|
COPY . /temp
|
||||||
WORKDIR /temp
|
WORKDIR /temp
|
||||||
RUN bun install --frozen-lockfile --production.
|
RUN bun install --frozen-lockfile --production
|
||||||
|
|
||||||
# Build Vite in pages
|
# Build Vite in pages
|
||||||
RUN bunx --bun vite build pages
|
RUN bunx --bun vite build pages
|
||||||
|
|
||||||
# Build the project
|
# Build the project
|
||||||
RUN bun build --entrypoints ./index.ts ./prisma.ts ./cli.ts --outdir dist --target bun --splitting --minify --external bullmq --external @prisma/client
|
RUN bun run build.ts
|
||||||
RUN mkdir ./dist/pages
|
|
||||||
RUN cp -r ./pages/dist ./dist/pages
|
|
||||||
WORKDIR /temp/dist
|
WORKDIR /temp/dist
|
||||||
|
|
||||||
# copy production dependencies and source code into final image
|
# copy production dependencies and source code into final image
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue