-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7141483
commit 61231d9
Showing
12 changed files
with
26 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ Dockerfile | |
docker-compose.yml | ||
flake.nix | ||
flake.lock | ||
static/style.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
FROM haskell:9.6.6 as BIN | ||
WORKDIR /app/user | ||
COPY *.cabal ./ | ||
from haskell:9.6.6 as bin | ||
workdir /app/user | ||
copy *.cabal ./ | ||
|
||
RUN cabal v2-update && \ | ||
run cabal v2-update && \ | ||
cabal v2-build --dependencies-only | ||
|
||
COPY . . | ||
RUN cabal v2-install --install-method copy --installdir . --overwrite-policy=always | ||
copy . . | ||
|
||
FROM debian:12.5-slim | ||
RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
COPY --from=BIN /app/user/mat-chalmers /bin/mat-chalmers | ||
ENV LANG C.UTF-8 | ||
CMD /bin/mat-chalmers | ||
EXPOSE 5007 | ||
run curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 && \ | ||
mv tailwindcss-linux-x64 tailwindcss && \ | ||
chmod +x tailwindcss && \ | ||
./tailwindcss --content src/View.hs --output static/style.css --minify | ||
|
||
run cabal v2-install --install-method copy --installdir . --overwrite-policy=always | ||
|
||
|
||
from debian:12.5-slim | ||
run apt-get update && apt-get install --no-install-recommends -y ca-certificates \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
copy --from=bin /app/user/mat-chalmers /bin/mat-chalmers | ||
env LANG C.UTF-8 | ||
cmd /bin/mat-chalmers | ||
expose 5007 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.