Skip to content

chore: Add dockerfile for deployment #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Feb 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tweak tag name, add SHA version
  • Loading branch information
bryphe-coder committed Feb 7, 2022
commit 584a231b3d3f20191fe1e9d862f1cdc0549de041
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
VERSION:=$(shell git rev-parse HEAD)

bin/coderd:
mkdir -p bin
go build -o bin/coderd cmd/coderd/main.go
Expand All @@ -24,7 +26,7 @@ database/generate: fmt/sql database/dump.sql database/query.sql
.PHONY: database/generate

docker/image/coder: build
docker build --network=host -t todo/v2/test -f images/coder/Dockerfile ./bin
docker build --network=host -t ci/coder:$(VERSION) -t ci/coder -f images/coder/Dockerfile ./bin
.PHONY: docker/image/coder

fmt/prettier:
Expand Down