build: try building and pushing with Compose

This commit is contained in:
Oliver Davies 2021-10-24 02:42:55 +01:00
parent 6a3f3eaa99
commit fc87e9abd0
2 changed files with 7 additions and 10 deletions

View file

@ -2,7 +2,11 @@ version: '2.4'
services:
web:
image: ghcr.io/opdavies/oliverdavies-uk-web
build:
context: .
dockerfile: tools/docker/images/Dockerfile
target: production
image: "ghcr.io/opdavies/oliverdavies-uk-web:${DOCKER_TAG:-latest}"
ports:
- 80:8080
restart: unless-stopped