-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
28 lines (20 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM debian:9-slim
MAINTAINER Chris Done
# Haskell system dependencies
RUN apt-get update && apt-get install -yq --no-install-suggests --no-install-recommends --force-yes -y netbase git ca-certificates xz-utils build-essential curl && curl -sSL https://get.haskellstack.org/ | sh
# ODBC system dependencies
RUN apt-get install -y gnupg apt-transport-https
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list
RUN apt-get update
RUN ACCEPT_EULA=Y apt-get install msodbcsql17 -y
RUN apt-get install -y unixodbc-dev freetds-dev locales
RUN locale-gen en_US.UTF-8
# Clone repo
COPY travis_commit.txt travis_commit.txt
RUN git clone https://github.com/fpco/odbc.git && \
cd odbc && \
echo Checking out $(cat ../travis_commit.txt) && \
git checkout $(cat ../travis_commit.txt)
# Install GHC and Haskell build dependencies
RUN cd odbc && stack setup && stack build --dependencies-only --test --no-run-tests