Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e70e2d28d | ||
|
|
705db14521 |
@@ -21,7 +21,7 @@ jobs:
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: /root/.cache/pip
|
||||
key: pip-{{ hashFiles('requirements*.txt') }}
|
||||
key: pip
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ WORKDIR /code/
|
||||
COPY requirements.txt ./
|
||||
COPY django_code ./
|
||||
|
||||
RUN --mount=type=cache,target=/root/.cache/pip,from=pip_cache pip install --upgrade pip
|
||||
RUN --mount=type=cache,target=/root/.cache/pip,from=pip_cache pip install --no-cache-dir -r requirements.txt
|
||||
RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip
|
||||
RUN --mount=type=cache,target=/root/.cache/pip pip install --no-cache-dir -r requirements.txt
|
||||
COPY . .
|
||||
RUN python django_code/manage.py migrate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user