another fix

This commit is contained in:
Jesse Wierzbinski 2024-04-07 00:35:27 -10:00
parent 21711960df
commit 742edb24b5
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View file

@ -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" ]

View file

@ -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 {