Skip apt-get in Dockerfile for servers blocked from Debian mirrors
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-6
@@ -1,18 +1,13 @@
|
||||
# باندل روی glibc ساخته شده؛ Alpine (musl) با Prisma سازگار نیست
|
||||
# باندل روی glibc ساخته شده؛ bookworm-slim بدون apt (سرور به deb.debian.org دسترسی ندارد)
|
||||
FROM node:22-bookworm-slim
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends openssl ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY deploy-bundle.tar.gz /tmp/deploy-bundle.tar.gz
|
||||
RUN tar -xzf /tmp/deploy-bundle.tar.gz -C /app \
|
||||
&& rm /tmp/deploy-bundle.tar.gz
|
||||
|
||||
# entrypoint از ریپو (قابل آپدیت بدون بازسازی کل باندل)
|
||||
COPY docker-entrypoint.sh /app/docker-entrypoint.sh
|
||||
RUN chmod +x /app/docker-entrypoint.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user