mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
another fix
This commit is contained in:
parent
21711960df
commit
742edb24b5
|
|
@ -25,7 +25,8 @@ RUN bunx --bun prisma generate
|
||||||
RUN bun run prod-build
|
RUN bun run prod-build
|
||||||
|
|
||||||
# copy production dependencies and source code into final image
|
# copy production dependencies and source code into final image
|
||||||
FROM oven/bun:1.1.2-alpine
|
# Alpine (musl) causes errors with Bun :(
|
||||||
|
FROM oven/bun:1.1.2-slim
|
||||||
|
|
||||||
# Create app directory
|
# Create app directory
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
|
|
@ -42,6 +43,6 @@ LABEL org.opencontainers.image.description "Lysand Server docker image"
|
||||||
# CD to app
|
# CD to app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENTRYPOINT [ "/bin/sh", "/app/entrypoint.sh" ]
|
ENTRYPOINT [ "/bin/bash", "/app/entrypoint.sh" ]
|
||||||
# Run migrations and start the server
|
# Run migrations and start the server
|
||||||
CMD [ "start" ]
|
CMD [ "start" ]
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ generator client {
|
||||||
provider = "prisma-client-js"
|
provider = "prisma-client-js"
|
||||||
previewFeatures = ["postgresqlExtensions"]
|
previewFeatures = ["postgresqlExtensions"]
|
||||||
// These last two lines are important for Docker!
|
// These last two lines are important for Docker!
|
||||||
binaryTargets = ["native", "debian-openssl-3.0.x", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
|
binaryTargets = ["native", "debian-openssl-3.0.x", "linux-arm64-openssl-3.0.x"]
|
||||||
}
|
}
|
||||||
|
|
||||||
generator json {
|
generator json {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue