forked from typelead/eta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (20 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
23 lines (20 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM openjdk:8-jdk-slim
# Install tooling dependencies
RUN apt-get -q update && \
apt-get -q install -y --no-install-recommends ca-certificates netbase curl git gcc g++ zlib1g-dev libncurses5-dev libbz2-dev && \
curl -sSL https://get.haskellstack.org/ | sh && \
mkdir -p $HOME/.local/bin && \
rm -rf /tmp/* \
/var/cache/apk/* && \
apt-get autoclean && \
apt-get clean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install from source
RUN git clone --recursive https://github.com/typelead/eta && \
cd /eta && \
./install.sh && \
rm -rf /eta \
~/.stack \
~/.etlas/packages \ # This eats up over 400MB
ENV PATH=${PATH}:/${JAVA_HOME}/bin:/root/.local/bin