Commit 5f937f79 authored by tom's avatar tom

[skip ci] add tag to local docker image

parent bfe148bf
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
"dev": "next dev", "dev": "next dev",
"dev:preset": "./tools/scripts/dev.preset.sh", "dev:preset": "./tools/scripts/dev.preset.sh",
"build": "next build", "build": "next build",
"build:docker": "docker build --build-arg GIT_COMMIT_SHA=$(git rev-parse --short HEAD) --build-arg GIT_TAG=$(git describe --tags --abbrev=0) -t blockscout-frontend ./", "build:docker": "docker build --build-arg GIT_COMMIT_SHA=$(git rev-parse --short HEAD) --build-arg GIT_TAG=$(git describe --tags --abbrev=0) -t blockscout-frontend:local ./",
"start": "next start", "start": "next start",
"start:docker:local": "docker run -p 3000:3000 --env-file .env.local blockscout-frontend", "start:docker:local": "docker run -p 3000:3000 --env-file .env.local blockscout-frontend:local",
"start:docker:preset": "./tools/scripts/docker.preset.sh", "start:docker:preset": "./tools/scripts/docker.preset.sh",
"lint:eslint": "eslint . --ext .js,.jsx,.ts,.tsx", "lint:eslint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:eslint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix", "lint:eslint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
......
...@@ -19,4 +19,4 @@ if [ ! -f "$secrets_file" ]; then ...@@ -19,4 +19,4 @@ if [ ! -f "$secrets_file" ]; then
exit 1 exit 1
fi fi
docker run -p 3000:3000 --env-file $config_file --env-file $secrets_file blockscout-frontend | pino-pretty docker run -p 3000:3000 --env-file $config_file --env-file $secrets_file blockscout-frontend:local | pino-pretty
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment