Optimize Dockerfile and Next.js configuration for CI/CD efficiency. Implemented caching for npm installs, disabled React Compiler in Docker builds, and adjusted build command to use webpack. Updated GitHub Actions workflow to enhance build process with BuildKit support.
This commit is contained in:
1 parent
44f4fa98e2
commit
f585a5e35e
4 files changed
+17
-4
No files matched your search
@@ -13,6 +13,8 @@ env:
|
||||
NETWORK_NAME: shared_web_network
|
||||
# Public hostname (Nginx Proxy Manager → this container:3000)
|
||||
PUBLIC_HOST: aut.insaight.net
|
||||
DOCKER_BUILDKIT: "1"
|
||||
COMPOSE_DOCKER_CLI_BUILD: "1"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
@@ -29,7 +31,11 @@ jobs:
|
||||
|| docker network create "$NETWORK_NAME"
|
||||
|
||||
- name: Build image
|
||||
run: docker build -t "$IMAGE_NAME" .
|
||||
run: |
|
||||
docker build \
|
||||
--progress=plain \
|
||||
-t "$IMAGE_NAME" \
|
||||
.
|
||||
|
||||
- name: Restart container
|
||||
env:
|
||||
|
||||
Reference in new issue
Block a user