Switch to new Dockerfile

This commit is contained in:
Filip Gralinski 2021-05-12 07:03:17 +02:00
parent 63e415784a
commit 265f82f1f2
5 changed files with 23 additions and 5 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
.git
.stack-work

3
.gitmodules vendored
View File

@ -6,3 +6,6 @@
path = test/fake-git-repos/with-gonito-yaml
url = git://gonito.net/gonito-fake-repo-for-tests
branch = with-gonito-yaml
[submodule "geval"]
path = geval
url = git://gonito.net/geval

View File

@ -6,13 +6,25 @@ WORKDIR /root/
RUN apt-get -y update && apt-get -y install libfcgi-dev && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN git clone git://gonito.net/geval && cd geval && git reset --hard a49abb560bd5e5f11f291f50176934fef5352c6c
RUN git clone git://gonito.net/gonito && cd gonito && git reset --hard 0bad9b3e582c4807cf9bf1c70eae53489a1302a4
COPY stack.yaml gonito.cabal /root/pre-build/
COPY geval /root/pre-build/geval
WORKDIR gonito
WORKDIR /root/pre-build
RUN stack install && rm -rf /root/.stack
RUN ls /root
RUN stack upgrade
RUN stack --version
RUN stack build --system-ghc --only-dependencies
COPY . /root/gonito/
WORKDIR /root/gonito
RUN stack install --system-ghc && rm -rf /root/.stack
FROM ubuntu:16.04 AS gonito-run

1
geval Submodule

@ -0,0 +1 @@
Subproject commit 54547fe0f8edc2a7ce0f9c5b85edd9bff98b2cf2

View File

@ -5,7 +5,7 @@ flags:
packages:
- '.'
extra-deps:
- ../geval
- ./geval
- wai-handler-fastcgi-3.0.0.2
- murmur3-1.0.3
- random-strings-0.1.1.0