Skip to content

Commit

Permalink
Damn you Cral
Browse files Browse the repository at this point in the history
  • Loading branch information
The1Penguin committed May 29, 2024
1 parent e2ee0a4 commit 1057cf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dist-newstyle
Dockerfile
docker-compose
docker-compose.yml
flake.nix
flake.lock
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
FROM haskell:9.4.5 as DEPS
RUN mkdir -p /app/user
FROM haskell:9.4.5 as BIN
WORKDIR /app/user
COPY *.cabal ./

RUN cabal v2-update
RUN cabal v2-build --dependencies-only

FROM haskell:9.4.5 as BIN
COPY --from=DEPS /app/user /app/user
COPY --from=DEPS /root/.cabal /root/.cabal
COPY . /app/user
WORKDIR /app/user
COPY . .
RUN cabal v2-install --install-method copy --installdir . --overwrite-policy=always

FROM debian:12.5-slim
RUN apt update
RUN apt install -y ca-certificates
COPY --from=BIN /app/user/mat-chalmers /app/user/mat-chalmers
COPY --from=BIN /app/user/mat-chalmers /bin/mat-chalmers
ENV LANG C.UTF-8
CMD /app/user/mat-chalmers
CMD /bin/mat-chalmers
EXPOSE 5007

0 comments on commit 1057cf0

Please sign in to comment.