Skip to content

Commit

Permalink
feat(cdk-docker-cluster): support custom dockerfile path
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsdaniels committed Jun 23, 2024
1 parent f84133e commit 65df2eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-donkeys-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@codedazur/cdk-docker-cluster": minor
---

Support an explicit Dockerfile path relative to the build context.
2 changes: 2 additions & 0 deletions packages/cdk-docker-cluster/src/constructs/DockerCluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Construct } from "constructs";

export interface DockerClusterProps {
path: string;
file?: string;
secrets?: Record<string, string>;
port?: number;
tasks?:
Expand All @@ -33,6 +34,7 @@ export class DockerCluster extends Construct {

const image = new DockerImageAsset(this, "Image", {
directory: props.path,
file: props.file,
buildSecrets: props.secrets,
platform: Platform.LINUX_AMD64,
});
Expand Down

0 comments on commit 65df2eb

Please sign in to comment.