mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Update lockfile and Dockerfile
This commit is contained in:
parent
d62e81977e
commit
5e42784d6d
|
|
@ -19,6 +19,9 @@ RUN mkdir -p /temp/prod
|
|||
COPY package.json bun.lockb /temp/prod/
|
||||
RUN cd /temp/prod && bun install --frozen-lockfile --production.
|
||||
|
||||
# Build Vite in pages
|
||||
RUN bun vite:build --mode production
|
||||
|
||||
# copy production dependencies and source code into final image
|
||||
FROM base AS release
|
||||
|
||||
|
|
@ -41,4 +44,4 @@ RUN bunx prisma generate
|
|||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
# Run migrations and start the server
|
||||
ENTRYPOINT [ "bun", "migrate", "&&", "bun", "run", "index.ts" ]
|
||||
ENTRYPOINT [ "bun", "migrate", "&&", "bun start" ]
|
||||
|
|
|
|||
Loading…
Reference in a new issue