redid dockerfile to bring in esbuild

This commit is contained in:
Pagwin 2026-02-24 02:13:22 -05:00
parent 7ad4b2b98b
commit 75810c269b
No known key found for this signature in database
GPG key ID: 81137023740CA260

View file

@ -1,6 +1,4 @@
FROM haskell:9.10-slim-bookworm
RUN mkdir -p /github/workspace
FROM haskell:9.10-slim-bookworm AS build
RUN cabal update
@ -14,6 +12,18 @@ RUN cabal build
WORKDIR /github/workspace
FROM debian:12
RUN mkdir -p /github/workspace
RUN apt update
RUN apt upgrade -y
RUN apt install esbuild -y
COPY --from=build /mnt /mnt
RUN export folder=$(ls /mnt/dist-newstyle/build/x86_64-linux) && mv /mnt/dist-newstyle/build/x86_64-linux/"$folder"/psb-0.2.0.0/x/psb/build/psb/psb /mnt/psb
ENTRYPOINT ["/mnt/psb", "build"]