Skip to content

Commit

Permalink
Add Java to import executor docker image (#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
vish-cs authored Dec 23, 2024
1 parent 1344996 commit 61df02d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions import-automation/executor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@ RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*

ENV JAVA_HOME=/usr/local/openjdk-17
COPY --from=openjdk:17-slim $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}"

WORKDIR /workspace

ADD requirements.txt /workspace/requirements.txt
RUN pip install -r /workspace/requirements.txt

RUN git clone https://github.com/datacommonsorg/data.git
RUN wget https://github.com/datacommonsorg/import/releases/download/0.1-alpha.1k/datacommons-import-tool-0.1-alpha.1-jar-with-dependencies.jar
COPY app/. /workspace/app/

CMD gunicorn --timeout 0 --workers 5 -b :$PORT app.main:FLASK_APP

0 comments on commit 61df02d

Please sign in to comment.