Skip to content

Commit

Permalink
Redo PR
Browse files Browse the repository at this point in the history
* Redo PR
  • Loading branch information
abraunegg committed Nov 7, 2024
1 parent 4793d83 commit 3bff499
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
tags: [ 'v*' ]
pull_request:
# Comment these out to force a test build on a PR
branches:
- master
types: [closed]
#branches:
# - master
#types: [closed]

env:
DOCKER_HUB_SLUG: driveone/onedrive
Expand Down
20 changes: 10 additions & 10 deletions contrib/docker/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ RUN go install -ldflags "-s -w" github.com/tianon/gosu@${GOSU_VERSION}

FROM alpine:${ALPINE_VERSION} AS builder-onedrive

RUN apk add --update --no-cache alpine-sdk gnupg xz curl-dev sqlite-dev binutils-gold autoconf automake ldc
RUN apk add --update --no-cache libstdc++ dmd curl-dev sqlite-dev make gcc libc-dev gpg-agent gpg bash curl xz git

COPY . /usr/src/onedrive
WORKDIR /usr/src/onedrive

RUN autoreconf -fiv \
&& ./configure --enable-debug\
&& make clean \
&& make \
&& make install
RUN set -xv && \
git clone https://github.com/abraunegg/onedrive.git && \
cd onedrive && \
./configure --enable-debug && \
make clean && make && \
make install

FROM alpine:${ALPINE_VERSION}
FROM docker.io/alpine:${ALPINE_VERSION}

RUN apk add --upgrade apk-tools \
&& apk upgrade --available

RUN apk add --update --no-cache bash libcurl libgcc shadow sqlite-libs ldc-runtime \
&& mkdir -p /onedrive/conf /onedrive/data
RUN apk add --update --no-cache llvm-libunwind sqlite-libs libcurl bash shadow && \
mkdir -p /onedrive/conf /onedrive/data

COPY --from=builder-gosu /go/bin/gosu /usr/local/bin/
COPY --from=builder-onedrive /usr/local/bin/onedrive /usr/local/bin/
Expand Down

0 comments on commit 3bff499

Please sign in to comment.