Setup multiplatform Docker builds

This commit is contained in:
2022-07-14 15:53:28 -07:00
parent ce2a433145
commit 3a955a45dc
2 changed files with 8 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
FROM node:lts-alpine AS builder
FROM --platform=$BUILDPLATFORM node:lts-alpine AS builder
WORKDIR /app
COPY sigl sigl

View File

@@ -24,6 +24,12 @@ db-upgrade :
db-downgrade :
poetry run flask db downgrade
docker :
docker buildx build --platform=linux/amd64,linux/arm64 . -t asymworks/sigl:latest
docker-deploy:
docker buildx build --platform=linux/amd64,linux/arm64 . -t asymworks/sigl:latest --push
lint :
poetry run flake8
@@ -48,7 +54,7 @@ test-x :
test-wip :
poetry run python -m pytest tests -m wip
.PHONY : css \
.PHONY : css docker \
db-init db-migrate db-upgrad db-downgrade \
lint shell serve \
requirements.txt requirements-dev.txt \