Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Nov 22, 2023
1 parent 9d575ba commit 7ccc614
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ COPY --from=dev /workdir/group /etc/group
COPY --from=dev /workdir/empty_dir /usr/local/var/run/
COPY --from=dev /workdir/empty_tmp_dir /tmp/

# needed for fly.io hack to change owner of volume
COPY --from=dev /usr/bin/bash /usr/bin/bash
COPY --from=dev /bin/chown /bin/chown

## x86_64 specific files
COPY --from=dev */lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/libm.so.6
COPY --from=dev */lib/x86_64-linux-gnu/libpcre2-8.so.0 /lib/x86_64-linux-gnu/libpcre2-8.so.0
Expand Down Expand Up @@ -154,5 +158,5 @@ ENV DB_PATH=/var/data/bindgen-web/data.db
ENV LLVM_BIN=/usr/lib/llvm-14/bin
ENV TEMP_PATH=/var/data/bindgen-web/tmp

ENTRYPOINT [ "unitd", "--statedir", "statedir", "--log", "/dev/stdout", "--no-daemon" ]
ENTRYPOINT [ "bash", "-c", "chown -R unit:unit /var/data/bindgen-web/ && unitd --no-daemon --log /dev/stdout" ]

7 changes: 7 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import java.lang
import scala.scalanative.build.Mode
import org.scalajs.linker.interface.ModuleSplitStyle

val V = new {
val Scala = "3.3.1"
Expand Down Expand Up @@ -65,6 +66,12 @@ lazy val frontend =
.settings(
remoteCache,
scalaJSUseMainModuleInitializer := true,
fastLinkJS / scalaJSLinkerConfig ~= {
_.withModuleKind(ModuleKind.ESModule)
.withModuleSplitStyle(
ModuleSplitStyle.SmallModulesFor(List("bindgen.web"))
)
},
libraryDependencies ++= Seq(
"org.http4s" %%% "http4s-dom" % V.http4sDom,
"com.raquo" %%% "laminar" % V.laminar,
Expand Down

0 comments on commit 7ccc614

Please sign in to comment.