mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Update lockfile and Dockerfile
This commit is contained in:
parent
d62e81977e
commit
5e42784d6d
2 changed files with 4 additions and 1 deletions
|
|
@ -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" ]
|
||||
|
|
|
|||
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue