Skip to content

Commit

Permalink
updated docker path and installed poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
hpatel426 committed Oct 6, 2023
1 parent 9806a5a commit 1019a59
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ RUN apt-get update \
#hdf5-helpers \
&& pip3 install --upgrade pip \
&& pip3 install cython \
&& apt-get clean
&& apt-get clean \
&& pip3 install poetry

# Create a new user
RUN adduser --quiet --disabled-password --shell /bin/sh --home /home/dockeruser --gecos "" --uid 1000 dockeruser
Expand All @@ -27,13 +28,22 @@ ARG DIST_PATH

USER root
RUN mkdir -p /worker && chown dockeruser /worker
COPY ../pyproject.toml /worker
USER dockeruser

WORKDIR /worker

ENV PYTHONPATH=${PYTHONPATH}:${PWD}

COPY --chown=dockeruser $DIST_PATH $DIST_PATH
USER dockeruser
RUN pip3 install --no-cache-dir --force --user --index-url https://pypi.org/simple/ --extra-index-url https://test.pypi.org/simple/ $SOURCE \
&& rm -rf $DIST_PATH
#RUN pip3 install --no-cache-dir --force --user --index-url https://pypi.org/simple/ --extra-index-url https://test.pypi.org/simple/ $SOURCE \
# && rm -rf $DIST_PATH

USER root
RUN poetry config virtualenvs.create false
RUN poetry install --no-dev

USER dockeruser
# Run the Batchee Harmony service
ENTRYPOINT ["batchee_harmony"]

0 comments on commit 1019a59

Please sign in to comment.