Commit Graph

8 Commits

Author SHA1 Message Date
Dominik Fuchß
1faab00741 Update Dockerfile to resolve #671 (#685)
Summary:
Applied fix mentioned in https://github.com/facebook/duckling/issues/671 to resolve https://github.com/facebook/duckling/issues/671

Since, no PR to fix this is present, I simply open a PR with the suggestion of AbstractUmbra.
The suggested fix seems to work (Docker Image builds and is operational)

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

Test Plan:
The author verified that the docker image works - it was missing some dependencies before.

There's no way to test this in sigma, but the change makes sense.

Reviewed By: haoxuany

Differential Revision: D34697708

Pulled By: stroxler

fbshipit-source-id: 2731604e136acfd74d4eedf3bf309f79894bb981
2022-03-07 16:48:15 -08:00
Tpt
888b1cba35 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
2020-11-02 13:33:00 -08:00
Pranas Kiziela
a93cae1c02 Improve Docker build (#341)
Summary:
* Reduces size of final image from 5GB to 130MB
* Builds any checkout (not locked to the master)
* Doesn't run stack on CMD (executes static build of Duckling instead)
Pull Request resolved: https://github.com/facebook/duckling/pull/341

Reviewed By: chinmay87

Differential Revision: D21083018

Pulled By: patapizza

fbshipit-source-id: d909158f20f5b8da5b0248a25103b850797bc3a3
2020-04-17 08:22:43 -07:00
Cameron Sheikholeslami
9b69b1fc96 Fix to dockerfile so PCRE regex works. (#467)
Summary: Pull Request resolved: https://github.com/facebook/duckling/pull/467

Reviewed By: chinmay87

Differential Revision: D20700248

Pulled By: patapizza

fbshipit-source-id: 17f933106c6f18fcd93b73f42af458220d93b6cf
2020-03-30 09:48:07 -07:00
Julien Odent
17dd70ffe5 Update old github links
Summary: facebookincubator -> facebook

Reviewed By: haoxuany

Differential Revision: D7729114

fbshipit-source-id: 4786b40060e873900c50e3af20be180a573a19ce
2018-04-23 10:15:33 -07:00
Mark Neumann
92e321e9ad Add note about -j1 flag for stack build
Summary:
I had trouble building the Docker image on a mac because `stack build` was trying to use all the cores and subsequently running out of memory. It took me a while to find the right flag, so I added a note to the dockerfile.
Closes https://github.com/facebook/duckling/pull/135

Differential Revision: D6655605

Pulled By: patapizza

fbshipit-source-id: 559c9fde175ad89f64b5c487afb77e3b7d5b982f
2018-01-03 06:00:44 -08:00
Hollin Wilkins
b7fc2c239d Update Dockerfile to build with correct version of Haskell.
Summary:
With the current Dockerfile, I get errors when trying to build:

```
Downloading lts-8.8 build plan ...
Downloaded lts-8.8 build plan.
Updating package index Hackage (mirrored at https://s3.amazonaws.com/hackage.fpcomplete.com/) ...
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading root
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading timestamp
Downloading snapshot
Downloading mirrors
Cannot update index (no local copy)
Downloading index
Updated package list downloaded
Populating index cache ...
Populated index cache.
Compiler version mismatched, found ghc-8.2.1 (x86_64), but expected minor version match with ghc-8.0.2 (x86_64) (based on resolver setting in /duckling/stack.yaml).
To install the correct GHC into /root/.stack/programs/x86_64-linux/, try running "stack setup" or use the "--install-ghc" flag.
The command '/bin/sh -c stack build' returned a non-zero code: 1
```

With these fixes, I run `stack setup` inside the docker image in case it was not setup previously on the host machine.
Closes https://github.com/facebookincubator/duckling/pull/98

Differential Revision: D6174261

Pulled By: patapizza

fbshipit-source-id: 4719d94
2017-10-27 11:34:48 -07:00
Ramtin Seraj
9b9f837e94 Adding dockerfile for the http server
Summary: Closes https://github.com/facebookincubator/duckling/pull/20

Differential Revision: D5078813

Pulled By: patapizza

fbshipit-source-id: a8f95ff
2017-05-17 10:19:44 -07:00