-
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.
What if, Mat had a different look (#144)
- Loading branch information
1 parent
683ab60
commit ac064ce
Showing
15 changed files
with
66 additions
and
274 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ cabal.sandbox.config | |
*.dump-hi | ||
.direnv/ | ||
.envrc | ||
static/style.css | ||
dist-newstyle/ | ||
result/ | ||
logs/ |
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 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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
default: up | ||
|
||
up: | ||
tailwindcss --content src/View.hs --output static/style.css --minify | ||
cabal clean | ||
cabal run |
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.
Oops, something went wrong.