Skip to content

Instantly share code, notes, and snippets.

@DewaldDeJager
Last active January 4, 2019 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DewaldDeJager/ef2a5845866f8008d6540b7dd72eb4cd to your computer and use it in GitHub Desktop.
Save DewaldDeJager/ef2a5845866f8008d6540b7dd72eb4cd to your computer and use it in GitHub Desktop.
OpenFst Dockerfile

OpenFst Dockerfile

Usage

  1. Copy the Dockerfile to the openfst source directory
  2. Update the version number on the first line to the version of GCC you wish to use
  3. Run docker build -t openfst . in the same directory as the Dockerfile

Note: You will need to be logged in to Docker Hub using docker login to pull the official GCC image

FROM gcc:7.4
COPY . /usr/src/openfst
WORKDIR /usr/src/openfst
RUN ./configure --enable-static --enable-shared --enable-far --enable-lookahead-fsts --enable-const-fsts --enable-pdt --enable-ngram-fsts --enable-linear-fsts --prefix=/usr
RUN make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment