Produce a much slimmer image by removing .cabal after updating it.
Chris Pressey
3 years ago
0 | 0 |
FROM rwstauner/haste-compiler
|
1 | |
RUN haste-cabal update
|
2 | |
RUN haste-cabal install parsec-3.1.1
|
3 | |
RUN chmod -R +x /root
|
|
1 |
RUN haste-cabal update && \
|
|
2 |
haste-cabal install parsec-3.1.1 && \
|
|
3 |
rm -rf /root/.cabal && \
|
|
4 |
chmod -R +x /root && \
|
|
5 |
chmod +r /root
|