Skip to content

Commit

Permalink
Avoid dirty git versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kjsanger committed Apr 3, 2024
1 parent 4bd669d commit cf397c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
.idea/**

.DS_Store
.dockerignore
.env
.gitignore

Dockerfile
docker-compose.yml
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,11 @@ FROM golang:1.22 as builder

WORKDIR /app

COPY ./Makefile .
COPY ./go.* .
COPY ./cmd ./cmd
COPY ./server ./server
COPY ./templates ./templates
COPY . .

RUN go mod download

# Mount the .git directory to allow the build to get the version from git
RUN --mount=type=bind,source=.git,target=.git make build-linux
RUN make build-linux

FROM alpine:latest

Expand Down

0 comments on commit cf397c7

Please sign in to comment.