Publish ARMv7 multi-arch Docker image
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
4862256371
commit
fe3e8809fa
3 files changed
+6
-6
No files matched your search
@@ -203,10 +203,10 @@ Pre-built multi-arch images available:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull danaildr/webssh:latest
|
docker pull danaildr/webssh:latest
|
||||||
docker pull danaildr/webssh:0.4.0
|
docker pull danaildr/webssh:0.5.1
|
||||||
```
|
```
|
||||||
|
|
||||||
Supported architectures: `linux/amd64`, `linux/arm64`
|
Supported architectures: `linux/amd64`, `linux/arm64`, `linux/arm/v7`
|
||||||
|
|
||||||
## Security Notes
|
## Security Notes
|
||||||
|
|
||||||
@@ -228,10 +228,11 @@ docker-compose up -d --build
|
|||||||
### Build for Docker Hub (Multi-arch)
|
### Build for Docker Hub (Multi-arch)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./docker-build-and-push.sh --build
|
docker login
|
||||||
|
./deployment/scripts/docker-build-and-push.sh --build
|
||||||
```
|
```
|
||||||
|
|
||||||
This builds and pushes both `linux/amd64` and `linux/arm64` images with tags `latest` and version tag.
|
This builds and pushes `linux/amd64`, `linux/arm64`, and `linux/arm/v7` images with tags `latest` and the configured version tag.
|
||||||
|
|
||||||
### Version Management
|
### Version Management
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ ENV PATH="/opt/venv/bin:$PATH"
|
|||||||
COPY requirements.txt /tmp/
|
COPY requirements.txt /tmp/
|
||||||
COPY src/ /tmp/src/
|
COPY src/ /tmp/src/
|
||||||
# Prefer prebuilt wheels when available to avoid building larger compiled artifacts
|
# Prefer prebuilt wheels when available to avoid building larger compiled artifacts
|
||||||
RUN pip install --no-cache-dir --prefer-binary -r /tmp/requirements.txt
|
RUN SODIUM_INSTALL=system python -m pip install --no-cache-dir --prefer-binary -r /tmp/requirements.txt
|
||||||
|
|
||||||
# Strip compiled extensions and remove tests/pycache in venv to reduce size
|
# Strip compiled extensions and remove tests/pycache in venv to reduce size
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ build_and_push() {
|
|||||||
echo -e "${GREEN}✅ Docker build & push successful${NC}"
|
echo -e "${GREEN}✅ Docker build & push successful${NC}"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${YELLOW}⚠️ Don't forget to create a GitHub release!${NC}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to show usage
|
# Function to show usage
|
||||||
|
|||||||
Reference in new issue
Block a user