Grammalecte  Artifact [f391f2d6f4]

Artifact f391f2d6f44b0cae9a08d949100540c41322ccd70271a8728be05e0c537259e0:


FROM python:3-alpine AS src

ENV VERSION 1.12.2

RUN apk add --update --no-cache \
      unzip \
      wget \
 && wget https://grammalecte.net/grammalecte/zip/Grammalecte-fr-v${VERSION}.zip \
 && unzip Grammalecte-fr-v${VERSION}.zip -d /srv

FROM python:3-alpine

COPY --from=src /srv/ /srv

ENV PYTHONUNBUFFERED TRUE

EXPOSE 8080

WORKDIR /srv

ENTRYPOINT ["python3"]

CMD ["grammalecte-server.py","-ht", "0.0.0.0","-p","8080","-t"]

# Create the container with
# `docker build -t grammalecte:latest .`

# Lauch the container with:
# `docker run --rm -p 8080:8080 --name gr grammalecte:latest`