Refactor Dockerfile and .dockerignore for clarity and build context. Updated paths in Dockerfile.prebuilt to reflect new directory structure and improved .dockerignore to better manage ignored files. Enhanced GitHub Actions workflow to ensure proper build context for Docker image creation.
This commit is contained in:
1 parent
9b48611a61
commit
13d122e905
3 files changed
+23
-18
No files matched your search
@@ -74,8 +74,14 @@ jobs:
|
||||
|
||||
- name: Build image from prebuilt
|
||||
run: |
|
||||
set -euo pipefail
|
||||
test -f prebuilt/standalone/server.js
|
||||
docker build -f Dockerfile.prebuilt -t "$IMAGE_NAME" .
|
||||
test -f prebuilt/standalone/.next/BUILD_ID
|
||||
test -d prebuilt/standalone/node_modules
|
||||
test -d prebuilt/static
|
||||
# Context = prebuilt/ so root .dockerignore cannot strip standalone/.next
|
||||
docker build -f Dockerfile.prebuilt -t "$IMAGE_NAME" prebuilt
|
||||
|
||||
|
||||
- name: Restart container
|
||||
env:
|
||||
|
||||
Reference in new issue
Block a user