Skip to content

Commit

Permalink
pkg/dockerbuild: change runtime fs location
Browse files Browse the repository at this point in the history
  • Loading branch information
eandre committed Dec 19, 2024
1 parent c16e35c commit 34bad99
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/dockerbuild/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,13 +385,9 @@ func (b *imageSpecBuilder) Describe(cfg DescribeConfig) (*ImageSpec, error) {
{
for _, out := range cfg.Compile.Outputs {
if _, ok := out.(*builder.JSBuildOutput); ok {
// Include the encore.dev package, at the same location.
runtimeSrc := cfg.Runtimes.Join("js", "encore.dev")
b.spec.CopyData[runtimeSrc.ToImage()] = runtimeSrc

// Add the encore-runtime.node file, and set the environment variable to point to it.
nativeRuntimeHost := cfg.NodeRuntime.GetOrElse(cfg.Runtimes.Join("js", "encore-runtime.node"))
nativeRuntimeImg := nativeRuntimeHost.ToImage().Dir().Join("encore-runtime.node")
nativeRuntimeImg := ImagePath("/encore/runtimes/js/encore-runtime.node")
b.spec.CopyData[nativeRuntimeImg] = nativeRuntimeHost
b.spec.Env = append(b.spec.Env, fmt.Sprintf("ENCORE_RUNTIME_LIB=%s", nativeRuntimeImg))
b.addPrio(nativeRuntimeImg)
Expand Down

0 comments on commit 34bad99

Please sign in to comment.