Skip to content

Commit

Permalink
Fix docker file after moving requirements txt
Browse files Browse the repository at this point in the history
  • Loading branch information
StdioA committed Aug 26, 2024
1 parent 46f76f4 commit 761450a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY requirements/full.txt requirements/optional.txt /app/
RUN mkdir -p $VIRTUAL_ENV && uv venv $VIRTUAL_ENV && \
uv pip install --no-cache-dir -r full.txt && \
(uv pip install --no-cache-dir -r optional.txt || true)
COPY . /app
ADD . /app

VOLUME /data/ledger
WORKDIR /data/ledger
Expand Down
8 changes: 4 additions & 4 deletions docker/Dockerfile-armv7
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ FROM python:3.11-slim

RUN pip install --upgrade uv && mkdir -p /app
WORKDIR /app
COPY requirements-full.txt requirements-optional.txt /app/
ENV VIRTUAL_ENV=/packages/.venv
RUN mkdir -p $VIRTUAL_ENV && uv venv $VIRTUAL_ENV
COPY requirements/full.txt requirements/optional.txt /app/
COPY --from=builder /packages/.venv/lib/ $VIRTUAL_ENV/lib/
RUN uv pip install --no-cache-dir -r requirements-full.txt && \
(uv pip install --no-cache-dir -r requirements-optional.txt || true)
COPY . /app
RUN uv pip install --no-cache-dir -r full.txt && \
(uv pip install --no-cache-dir -r optional.txt || true)
ADD . /app

VOLUME /data/ledger
WORKDIR /data/ledger
Expand Down

0 comments on commit 761450a

Please sign in to comment.