Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26464bce43 | ||
|
|
bbd12ce674 | ||
|
|
c40ebd84d8 | ||
|
|
5b9e998739 | ||
|
|
5dc3f4cb17 | ||
|
|
22ef689092 | ||
|
|
aa1fecae43 |
@@ -32,7 +32,6 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
builder: multiplatform-builder
|
|
||||||
file: server/Dockerfile
|
file: server/Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
+6
-10
@@ -48,21 +48,17 @@ RUN --mount=type=cache,target=/var/cache/apk \
|
|||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
|
COPY server/pyproject.toml server/README.md server/requirements.txt ./
|
||||||
COPY server/requirements.txt ./
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
||||||
python3 -m venv /opt/venv \
|
|
||||||
&& /opt/venv/bin/pip install --upgrade pip \
|
|
||||||
&& /opt/venv/bin/pip install -r requirements.txt
|
|
||||||
|
|
||||||
COPY server/pyproject.toml server/README.md ./
|
|
||||||
COPY server/src/ ./src/
|
COPY server/src/ ./src/
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
||||||
/opt/venv/bin/pip install .
|
|
||||||
# aerich migration files are a release artifact: the db-migrate compose
|
# aerich migration files are a release artifact: the db-migrate compose
|
||||||
# service runs `aerich upgrade` from this image before the app starts.
|
# service runs `aerich upgrade` from this image before the app starts.
|
||||||
COPY server/migrations/ ./migrations/
|
COPY server/migrations/ ./migrations/
|
||||||
|
|
||||||
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
|
python3 -m venv /opt/venv \
|
||||||
|
&& /opt/venv/bin/pip install --upgrade pip \
|
||||||
|
&& /opt/venv/bin/pip install -r requirements.txt .
|
||||||
|
|
||||||
# --- Runtime ---------------------------------------------------------------
|
# --- Runtime ---------------------------------------------------------------
|
||||||
FROM alpine:3.24
|
FROM alpine:3.24
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user