Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ozonophore committed Dec 28, 2023
1 parent bd8fca2 commit 2d251ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,21 @@ COPY web/openapi/openapi.yml /app/openapi.yml
RUN npm run build

## Build
FROM golang:1.20 AS build-backend
FROM golang:1.21 AS build-backend

WORKDIR /app

COPY web/go.mod ./
COPY web/go.sum ./
RUN go mod download && go mod verify

COPY web/cmd ./cmd
COPY web/internal ./internal
COPY web/openapi ./openapi
COPY web/go.mod ./go.mod
COPY web/go.sum ./go.sum
COPY web/Makefile ./Makefile

RUN go mod download

RUN make build

## Deploy
Expand Down

0 comments on commit 2d251ad

Please sign in to comment.