fix(backup): libresolv.so.2: No such file or directory

This commit is contained in:
henry.chen
2023-05-26 09:57:30 +08:00
parent 860a85e209
commit 2c6c5bb977
2 changed files with 4 additions and 8 deletions

View File

@@ -19,13 +19,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Inspect builder
run: |
echo "Name: ${{ steps.buildx.outputs.name }}"
echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}"
echo "Status: ${{ steps.buildx.outputs.status }}"
echo "Flags: ${{ steps.buildx.outputs.flags }}"
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
- name: Docker tag
id: vars
@@ -45,6 +38,7 @@ jobs:
push: true
tags: |
deepzz0/eiblog:${{ steps.vars.outputs.tag }}
deepzz0/eiblog:latest
- name: Build and push backup
uses: docker/build-push-action@v3
@@ -55,6 +49,7 @@ jobs:
push: true
tags: |
deepzz0/backup:${{ steps.vars.outputs.tag }}
deepzz0/backup:latest
- name: Package tar
env:

View File

@@ -8,7 +8,8 @@ RUN ./scripts/run_build.sh backup
FROM alpine:latest
LABEL maintainer="deepzz.qi@gmail.com"
RUN apk add --update --no-cache tzdata ca-certificates mongodb-tools libc6-compat
RUN apk add --update --no-cache tzdata ca-certificates \
mongodb-tools libc6-compat gcompat
COPY README.md /app/README.md
COPY CHANGELOG.md /app/CHANGELOG.md
COPY LICENSE /app/LICENSE