Skip to content

Commit

Permalink
fix build docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
lejianwen committed Sep 28, 2024
1 parent 1b88d26 commit 83c3aa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:

- name: Unzip binaries
run: |
tar -xzf ${{ matrix.job.goos }}-${{ matrix.job.platform }}.tar.gz
tar -xzf ${{ matrix.job.goos }}-${{ matrix.job.platform }}.tar.gz -C ${{ matrix.job.platform }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
Expand All @@ -150,6 +150,8 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
provenance: false
build-args: |
BUILDARCH=${{ matrix.job.platform }}
tags: |
lejianwen/rustdesk-api:${{ env.LATEST_TAG }}
lejianwen/rustdesk-api:${{ env.TAG }}
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM alpine

ARG BUILDARCH
WORKDIR /app
RUN apk add --no-cache tzdata
COPY ./release /app/
COPY ./${BUILDARCH}/release /app/
VOLUME /app/data

EXPOSE 21114
Expand Down

0 comments on commit 83c3aa8

Please sign in to comment.