Skip to content

Commit

Permalink
feat(harvester): Replace requirments.txt with poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
WildfootW committed Mar 24, 2024
1 parent 67853fb commit 62e90c1
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 682 deletions.
12 changes: 8 additions & 4 deletions services/batched-harvester/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ FROM python:3.11-slim
WORKDIR /app

# Copy the current directory contents into the container at /app
COPY ./requirements.txt /app/requirements.txt

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
#COPY ./requirements.txt /app/requirements.txt
#RUN pip install --no-cache-dir -r requirements.txt
COPY pyproject.toml poetry.lock /app/
RUN --mount=type=cache,target=/root/.cache \
pip install poetry && \
poetry config virtualenvs.create false && \
poetry install --no-dev --no-interaction --no-ansi

# Copy the rest of your app's source code from your host to your image filesystem.
COPY src/ /app/

# Run bot.py when the container launches
CMD ["python", "./main.py"]

Loading

0 comments on commit 62e90c1

Please sign in to comment.