Skip to content

Commit

Permalink
chore: improve Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Mar 13, 2024
1 parent 96ec1db commit abe5342
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ RUN pnpm build
FROM golang:1.22-alpine AS backend
WORKDIR /backend-build

COPY go.mod .
COPY go.sum .
RUN go mod download

COPY . .

RUN CGO_ENABLED=0 go build -o memos ./bin/memos/main.go
Expand Down

0 comments on commit abe5342

Please sign in to comment.