Skip to content

Commit 3422b9c

Browse files
authored
Merge pull request #276 from middlewarehq/cache-python-files
Caches Python packages
2 parents 1781ad0 + c9f663d commit 3422b9c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ COPY . /app/
3030
WORKDIR /app/backend
3131
RUN python3 -m venv /opt/venv
3232
RUN /opt/venv/bin/pip install --upgrade pip
33-
RUN /opt/venv/bin/pip install -r requirements.txt -r dev-requirements.txt
33+
RUN --mount=type=cache,target=/root/.cache/pip /opt/venv/bin/pip install -r requirements.txt -r dev-requirements.txt
3434

3535
WORKDIR /app
3636
RUN mkdir -p /etc/cron.d && mv /app/setup_utils/cronjob.txt /etc/cron.d/cronjob

dev.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ cat env.example > .env
44
cd ./cli
55

66
{ yarn && yarn build; } > /dev/null 2>&1
7-
yarn start
7+
yarn start
8+
9+
cd ..

0 commit comments

Comments
 (0)