Dockerfile: debugs the build and uses Debian Buster everywhere (#539)

Summary:
The Dockerfile build part did not copy the Duckling implementation into the container, making the build fail.

I also harmonized the target Debian to Buster, that is the one currently hidden behind `haskell:8`.

Pull Request resolved: https://github.com/facebook/duckling/pull/539

Reviewed By: patapizza

Differential Revision: D24688839

Pulled By: chessai

fbshipit-source-id: 0ffcc4d28a599b7edad668730117828d26e116ad
This commit is contained in:
Tpt 2020-11-02 13:21:40 -08:00 committed by Facebook GitHub Bot
parent bfc75849d2
commit 888b1cba35

View File

@ -1,4 +1,4 @@
FROM haskell:8 AS builder
FROM haskell:8-buster AS builder
RUN apt-get update -qq && \
apt-get install -qq -y libpcre3 libpcre3-dev build-essential --fix-missing --no-install-recommends && \
@ -9,7 +9,7 @@ RUN mkdir /log
WORKDIR /duckling
ADD stack.yaml .
ADD . .
ENV LANG=C.UTF-8
@ -23,7 +23,7 @@ ADD . .
# '-j1' flag to force the build to run sequentially.
RUN stack install
FROM debian:stretch
FROM debian:buster
ENV LANG C.UTF-8