Skip to content
Snippets Groups Projects
Commit bf540dfa authored by mateuszg's avatar mateuszg
Browse files

Dockerfile adjustments

parent 1e74c84b
No related branches found
No related tags found
No related merge requests found
......@@ -5,12 +5,6 @@ LABEL description="Client - Workers - converting any files into txt format"
LABEL organiztation="NLP Tools for Polish from G4.19 Group - Wroclaw University of Science and Technology"
LABEL maintainer="tomasz.walkowiak@pwr.edu.pl"
WORKDIR /home/install
RUN git clone https://gitlab.clarin-pl.eu/nlpworkers/nlp.worker.git && \
cd nlp.worker && \
mvn clean && \
mvn install
WORKDIR /home/install
COPY ./module ./module
RUN cd module && \
......@@ -19,6 +13,6 @@ RUN cd module && \
FROM clarinpl/openjdk-jre:8
WORKDIR /home/worker
COPY --from=builder /home/install/module/target/nlp.worker.any2txt.jar .
CMD ["java", "-jar", "nlp.worker.any2txt.jar"]
FROM clarinpl/openjdk:8 as builder
LABEL application="Any2txt"
LABEL description="Client - Workers - converting any files into txt format"
LABEL organiztation="NLP Tools for Polish from G4.19 Group - Wroclaw University of Science and Technology"
LABEL maintainer="tomasz.walkowiak@pwr.edu.pl"
WORKDIR /home/install
RUN git clone https://gitlab.clarin-pl.eu/nlpworkers/nlp.worker.git && \
cd nlp.worker && \
mvn clean && \
mvn install
WORKDIR /home/install
COPY ./module ./module
RUN cd module && \
mvn clean && \
mvn install
FROM clarinpl/openjdk-jre:8
WORKDIR /home/worker
COPY --from=builder /home/install/module/target/nlp.worker.any2txt.jar .
# ANY2TXT SERVICE
### Run a container
`docker run -it -v /samba:/samba -v $(pwd)/config.ini:/home/worker/config.ini clarinpl/any2txt`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment