Fix Docker build: ship entrypoint.sh as a real file instead of heredoc COPY
Build and Push Docker Image / build (push) Successful in 1m43s
Build and Push Docker Image / build (push) Successful in 1m43s
The classic Docker builder (used by docker-build.yml on the host runner) does not support heredoc COPY syntax, which caused 'COPY failed: no source files were specified'. Replace the heredoc with a checked-in entrypoint.sh copied normally. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+1
-8
@@ -57,14 +57,7 @@ EXPOSE 3000
|
|||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
|
|
||||||
# script to run migrations before starting
|
# script to run migrations before starting
|
||||||
COPY --chown=nextjs:nodejs <<EOF /app/entrypoint.sh
|
COPY --chown=nextjs:nodejs entrypoint.sh /app/entrypoint.sh
|
||||||
#!/bin/sh
|
|
||||||
set -e
|
|
||||||
echo "Running prisma db push..."
|
|
||||||
npx prisma db push --accept-data-loss
|
|
||||||
echo "Starting server..."
|
|
||||||
node server.js
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUN chmod +x /app/entrypoint.sh
|
RUN chmod +x /app/entrypoint.sh
|
||||||
|
|
||||||
|
|||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
echo "Running prisma db push..."
|
||||||
|
npx prisma db push --accept-data-loss
|
||||||
|
echo "Starting server..."
|
||||||
|
node server.js
|
||||||
Reference in New Issue
Block a user