Skip to content
This repository was archived by the owner on Sep 19, 2021. It is now read-only.

use Docker Compose for building the API #558

Merged
merged 1 commit into from
Jul 16, 2018
Merged
Changes from all commits
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
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,10 @@ package-react:
@docker cp ./dist/. eapp_react_container:/var/www/html/
@docker commit eapp_react_container eapp_react
package-go:
@docker run --rm \
-v ${PWD}:/go/src/github.com/18F/e-QIP-prototype \
@docker-compose run --rm \
-w /go/src/github.com/18F/e-QIP-prototype/api/cmd/server \
-e "CGO_ENABLED=0" \
golang:latest go build -ldflags '-w -extldflags "-static"'
api go build -ldflags '-w -extldflags "-static"'
-@mkdir -p ./api/dist/tmp
-@mkdir -p ./api/dist/bin
-@cp -R ./api/migrations ./api/dist/
Expand Down