mirror of
https://github.com/github/semantic.git
synced 2024-11-23 16:37:50 +03:00
Add a Dockerfile that builds the CLI tool
This commit is contained in:
parent
5e969832c4
commit
353c99db2d
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
Dockerfile
|
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM haskell:8.6 as build
|
||||
WORKDIR /build
|
||||
RUN cabal new-update
|
||||
COPY . /build
|
||||
RUN cabal new-build semantic:exe:semantic
|
||||
|
||||
# A fake `install` target until we can get `cabal new-install` to work
|
||||
RUN cp $(find dist-newstyle -name semantic -type f -perm -u=x) /semantic
|
||||
|
||||
FROM debian:stretch
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
libgmp10 \
|
||||
&& \
|
||||
apt-get autoremove -y && \
|
||||
apt-get clean -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=build /semantic /usr/local/bin/semantic
|
||||
ENTRYPOINT ["/usr/local/bin/semantic"]
|
Loading…
Reference in New Issue
Block a user