moving to alpine, fixing build closes #2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Andrew Davidson 2023-08-30 22:38:33 -07:00
parent fcfd7429a3
commit 4848fa0c0e
Signed by: amd
SSH key fingerprint: SHA256:wVzFOuz2n/yUVVBFkpZQ0AOX6guwdUUzSeKWr8aLUiU
4 changed files with 12 additions and 11 deletions

View file

@ -1,18 +1,18 @@
FROM fedora:34 FROM alpine
RUN dnf install -y python3-pip which \ RUN apk add py3-pip gcc python3-dev musl-dev libgit2 libgit2-dev
&& dnf clean all \
&& pip3 install pipenv RUN pip install pipenv
VOLUME /backups VOLUME /backups
COPY . /archivist COPY . /archivist
RUN touch /archivist/archivist.yml #RUN touch /archivist/archivist.yml
WORKDIR /archivist WORKDIR /archivist
RUN pipenv install RUN pipenv install
ENTRYPOINT ["/archivist/bin/archivist.sh"] CMD ["/archivist/bin/archivist.sh"]

View file

@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi" name = "pypi"
[packages] [packages]
pygit2 = "*" pygit2 = "1.11.*"
requests = "*" requests = "*"
pyyaml = "*" pyyaml = "*"
imapclient = "*" imapclient = "*"
@ -12,4 +12,4 @@ imapclient = "*"
[dev-packages] [dev-packages]
[requires] [requires]
python_version = "3.9" python_version = "3.11"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
CURRENTDIR="$(dirname "$0")" CURRENTDIR="$(dirname "$0")"
ROOT_DIR="$CURRENTDIR/.." ROOT_DIR="$CURRENTDIR/.."

View file

@ -12,9 +12,10 @@ docker buildx create --use --name builder
echo "### MARK BUILD" echo "### MARK BUILD"
docker buildx build --push \ docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \ --platform linux/amd64 \
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME \ -t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME \
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:latest \ -t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:latest \
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:$(date -I) \ -t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:$(date -I) \
. .
#--platform linux/amd64,linux/arm64,linux/arm/v7 \