moving to alpine, fixing build closes #2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
fcfd7429a3
commit
4848fa0c0e
4 changed files with 12 additions and 11 deletions
12
Dockerfile
12
Dockerfile
|
@ -1,18 +1,18 @@
|
|||
FROM fedora:34
|
||||
FROM alpine
|
||||
|
||||
RUN dnf install -y python3-pip which \
|
||||
&& dnf clean all \
|
||||
&& pip3 install pipenv
|
||||
RUN apk add py3-pip gcc python3-dev musl-dev libgit2 libgit2-dev
|
||||
|
||||
RUN pip install pipenv
|
||||
|
||||
VOLUME /backups
|
||||
|
||||
COPY . /archivist
|
||||
|
||||
RUN touch /archivist/archivist.yml
|
||||
#RUN touch /archivist/archivist.yml
|
||||
|
||||
WORKDIR /archivist
|
||||
|
||||
RUN pipenv install
|
||||
|
||||
ENTRYPOINT ["/archivist/bin/archivist.sh"]
|
||||
CMD ["/archivist/bin/archivist.sh"]
|
||||
|
||||
|
|
4
Pipfile
4
Pipfile
|
@ -4,7 +4,7 @@ verify_ssl = true
|
|||
name = "pypi"
|
||||
|
||||
[packages]
|
||||
pygit2 = "*"
|
||||
pygit2 = "1.11.*"
|
||||
requests = "*"
|
||||
pyyaml = "*"
|
||||
imapclient = "*"
|
||||
|
@ -12,4 +12,4 @@ imapclient = "*"
|
|||
[dev-packages]
|
||||
|
||||
[requires]
|
||||
python_version = "3.9"
|
||||
python_version = "3.11"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
CURRENTDIR="$(dirname "$0")"
|
||||
ROOT_DIR="$CURRENTDIR/.."
|
||||
|
|
5
build.sh
5
build.sh
|
@ -12,9 +12,10 @@ docker buildx create --use --name builder
|
|||
|
||||
|
||||
echo "### MARK BUILD"
|
||||
docker buildx build --push \
|
||||
--platform linux/amd64,linux/arm64,linux/arm/v7 \
|
||||
docker buildx build \
|
||||
--platform linux/amd64 \
|
||||
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME \
|
||||
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:latest \
|
||||
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:$(date -I) \
|
||||
.
|
||||
#--platform linux/amd64,linux/arm64,linux/arm/v7 \
|
||||
|
|
Loading…
Reference in a new issue