mirror of
https://github.com/pinry/pinry.git
synced 2026-05-07 14:15:57 +02:00
feature: try to fix docker run commands
This commit is contained in:
@@ -5,9 +5,18 @@ script_dir="$( dirname "${0}" )"
|
||||
IMAGE_LATEST_TAG="latest"
|
||||
IMAGE_VERSION_TAG=`git tag -l --sort=-creatordate | head -n 1 | sed "s/v//g"`
|
||||
|
||||
#sudo docker buildx build \
|
||||
# --no-cache \
|
||||
# --push \
|
||||
# --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||
# -t getpinry/pinry:${IMAGE_LATEST_TAG} \
|
||||
# -t getpinry/pinry:${IMAGE_VERSION_TAG} \
|
||||
# "${script_dir}/../" \
|
||||
# -f "${script_dir}/../Dockerfile.autobuild"
|
||||
|
||||
sudo docker buildx build \
|
||||
--push \
|
||||
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||
--output=type=docker \
|
||||
--platform linux/amd64 \
|
||||
-t getpinry/pinry:${IMAGE_LATEST_TAG} \
|
||||
-t getpinry/pinry:${IMAGE_VERSION_TAG} \
|
||||
"${script_dir}/../" \
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
poetry run gunicorn pinry.wsgi -b 0.0.0.0:8000 -w 4 \
|
||||
--capture-output --timeout 30 \
|
||||
--user www-data --group www-data
|
||||
@@ -30,4 +30,4 @@ chown -R www-data:www-data /data
|
||||
/usr/sbin/nginx
|
||||
|
||||
cd ${PROJECT_ROOT}
|
||||
./docker/scripts/_start_gunicorn.sh
|
||||
make serve-gunicorn
|
||||
|
||||
Reference in New Issue
Block a user