Commit bf540dfa authored by mateuszg's avatar mateuszg

Dockerfile adjustments

parent 1e74c84b
......@@ -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`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment