Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ FROM ghcr.io/apertium/base
LABEL maintainer [email protected]

# Install packaged dependencies

RUN apt-get -qq update && apt-get -qq install python3-full python3-pip pipenv
RUN apt-get -qq update && apt-get -qq install python3-full python3-pip pipenv xdg-utils

# Install CLD2

WORKDIR /root/tmp
ADD https://github.com/CLD2Owners/cld2/archive/refs/heads/master.zip cld2.zip
RUN unzip -q cld2.zip && \
Expand All @@ -23,14 +21,12 @@ WORKDIR /root
RUN rm -rf /root/tmp

# Install Apertium-related libraries (and a test pair)

RUN apt-get -qq update && apt-get -qq install \
giella-core \
hfst-ospell \
apertium-eng-spa

# Install APy

COPY Pipfile apertium-apy/
COPY Pipfile.lock apertium-apy/

Expand All @@ -42,7 +38,6 @@ COPY . apertium-apy
RUN cd apertium-apy && make -j4

# Run APy

EXPOSE 2737
ENTRYPOINT ["python3", "/root/apertium-apy/apy.py", "--lang-names", "/root/apertium-apy/langNames.db"]
CMD ["/usr/share/apertium/modes", "--port", "2737"]
CMD ["/usr/share/apertium/modes", "--port", "2737"]