Skip to content

Commit ff65c97

Browse files
author
Ferdinand Hoffmann
committed
Copy missing README.md to docker image & cache dependencies
1 parent c0888de commit ff65c97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ RUN groupadd --gid $USER_GID $USERNAME \
1919
WORKDIR /code
2020

2121
# copy files required to build/install dependencies (this should cache the next `RUN` if none of the files was changed)
22-
COPY Pipfile Pipfile.lock pyproject.toml /code/
22+
COPY Pipfile Pipfile.lock pyproject.toml README.md /code/
2323
COPY firebase_push/__init__.py /code/firebase_push/
2424

25-
RUN python -m pip install pipenv && pipenv sync --system --dev && rm -rf ~/.cache ~/.local
25+
RUN --mount=type=cache,target=/root/.cache,sharing=locked,id=firebase-push-python \
26+
python -m pip install pipenv && pipenv sync --system --dev && rm -rf ~/.local
2627

2728
# COPY . /code/
2829
VOLUME /code

0 commit comments

Comments
 (0)