Docker/Makefile: rename to caution.co

This commit is contained in:
RyanSquared 2025-06-10 15:20:11 -04:00
parent 1b8d45f128
commit 2430d8486f
Signed by untrusted user who does not match committer: ryan
GPG Key ID: 8E401478A3FBEF72
2 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
FROM ruby:3.2.2-alpine AS builder
LABEL stage=distrust-co-builder
LABEL stage=caution-co-builder
RUN apk update && apk add g++ make git git-lfs
RUN mkdir -p /home
COPY Gemfile /home

View File

@ -1,12 +1,12 @@
.PHONY: build
build:
# Build Docker image
docker build -t distrust-co .
docker build -t caution-co .
.PHONY: fullclean
fullclean: clean
docker rmi distrust-co || true
docker image prune -f --filter label=stage=distrust-co-builder || true
docker rmi caution-co || true
docker image prune -f --filter label=stage=caution-co-builder || true
.PHONY: clean
clean:
@ -14,9 +14,9 @@ clean:
_site: build
mkdir -p _site
docker run distrust-co tar c -C /usr/share/nginx/html . | tar x -C _site
docker run caution-co tar c -C /usr/share/nginx/html . | tar x -C _site
.PHONY: serve
serve: build
# Run Docker container with listener for current dir and port mapping
docker run --rm -p 0.0.0.0:4000:80 -it distrust-co
docker run --rm -p 0.0.0.0:4000:80 -it caution-co