Skip to content

Commit

Permalink
sst.aws.Service: fix context paths
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Sep 26, 2024
1 parent 16ff8b8 commit 0e314b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/src/components/aws/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ export class Service extends Component implements Link.Linkable {
const contextPath = path.join($cli.paths.root, imageArgs.context);
const dockerfile = imageArgs.dockerfile ?? "Dockerfile";
const dockerfilePath = imageArgs.dockerfile
? path.join(contextPath, imageArgs.dockerfile)
: path.join(contextPath, imageArgs.context, "Dockerfile");
? path.join($cli.paths.root, imageArgs.dockerfile)
: path.join($cli.paths.root, imageArgs.context, "Dockerfile");
const dockerIgnorePath = fs.existsSync(
path.join(contextPath, `${dockerfile}.dockerignore`),
)
Expand Down

0 comments on commit 0e314b8

Please sign in to comment.