mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: Add dockerfile for deployment (#180)
This just adds a very simple dockerfile for deploying `coderd` (and later `provisionerd`).
This adds a `deploy` directory at the root, and a `make docker/build` command to the makefile.
Thanks @jawnsy for the all the help 😄
This commit is contained in:
@@ -3,7 +3,7 @@ bin/coderd:
|
||||
go build -o bin/coderd cmd/coderd/main.go
|
||||
.PHONY: bin/coderd
|
||||
|
||||
build: site/out bin/coderd
|
||||
build: site/out bin/coderd
|
||||
.PHONY: build
|
||||
|
||||
# Runs migrations to output a dump of the database.
|
||||
@@ -17,6 +17,11 @@ database/generate: fmt/sql database/dump.sql database/query.sql
|
||||
cd database && gofmt -w -r 'Queries -> sqlQuerier' *.go
|
||||
.PHONY: database/generate
|
||||
|
||||
docker/image/coder: build
|
||||
cp ./images/coder/run.sh ./bin
|
||||
docker build --network=host -t us-docker.pkg.dev/coder-blacktriangle-dev/ci/coder:latest -f images/coder/Dockerfile ./bin
|
||||
.PHONY: docker/build
|
||||
|
||||
fmt/prettier:
|
||||
@echo "--- prettier"
|
||||
# Avoid writing files in CI to reduce file write activity
|
||||
|
||||
Reference in New Issue
Block a user