This commit is contained in:
2026-02-06 12:15:43 +03:00
parent d654b1ffc8
commit 6d96372682
7 changed files with 60 additions and 11 deletions

View File

@ -1,5 +1,8 @@
FROM node:20-slim
# Prisma Query Engine needs OpenSSL shared libraries
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
RUN corepack enable && corepack prepare pnpm@9.0.0 --activate
WORKDIR /app
@ -18,7 +21,7 @@ COPY . .
RUN pnpm build --filter=@coursecraft/api...
COPY docker/entrypoint-api.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
EXPOSE 3125
CMD ["/entrypoint.sh"]