mirror of https://github.com/stashapp/stash.git
Fix docker (#1883)
This commit is contained in:
parent
401fc290ef
commit
f904c59532
|
@ -9,7 +9,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm/v6" ]; then BIN=stash-pi; \
|
||||||
fi; \
|
fi; \
|
||||||
mv $BIN /stash
|
mv $BIN /stash
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM alpine:latest AS app
|
FROM --platform=$TARGETPLATFORM alpine:latest AS app
|
||||||
COPY --from=binary /stash /usr/bin/
|
COPY --from=binary /stash /usr/bin/
|
||||||
RUN apk add --no-cache ca-certificates python3 py3-requests py3-requests-toolbelt py3-lxml py3-pip ffmpeg vips-tools && pip install mechanicalsoup cloudscraper
|
RUN apk add --no-cache ca-certificates python3 py3-requests py3-requests-toolbelt py3-lxml py3-pip ffmpeg vips-tools && pip install mechanicalsoup cloudscraper
|
||||||
ENV STASH_CONFIG_FILE=/root/.stash/config.yml
|
ENV STASH_CONFIG_FILE=/root/.stash/config.yml
|
||||||
|
|
|
@ -10,5 +10,5 @@ done
|
||||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
|
||||||
# must build the image from dist directory
|
# must build the image from dist directory
|
||||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --push $DOCKER_TAGS -f docker/ci/x86_64/Dockerfile dist/
|
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 --push $DOCKER_TAGS -f docker/ci/x86_64/Dockerfile dist/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue