Skip to content

Commit

Permalink
build improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
minaorangina committed Mar 13, 2021
1 parent 704b906 commit 18ad877
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ ADD . /app

RUN go mod download

RUN make
RUN go build -o ./cmd/web/shed cmd/web/main.go

WORKDIR /app/cmd/web

RUN go install

EXPOSE 8000

Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
shed: static-files
go build -o ./cmd/web/shed cmd/web/main.go
cd cmd/web && go install

static-files:
-[ ! -L "$(pwd)/server/build" ] && ln -sv "../cmd/web/build" ./server
Expand Down

0 comments on commit 18ad877

Please sign in to comment.