redid dockerfile to bring in esbuild
This commit is contained in:
parent
7ad4b2b98b
commit
75810c269b
1 changed files with 13 additions and 3 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -1,6 +1,4 @@
|
||||||
FROM haskell:9.10-slim-bookworm
|
FROM haskell:9.10-slim-bookworm AS build
|
||||||
|
|
||||||
RUN mkdir -p /github/workspace
|
|
||||||
|
|
||||||
RUN cabal update
|
RUN cabal update
|
||||||
|
|
||||||
|
|
@ -14,6 +12,18 @@ RUN cabal build
|
||||||
|
|
||||||
WORKDIR /github/workspace
|
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
|
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"]
|
ENTRYPOINT ["/mnt/psb", "build"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue