Skip to content

Commit

Permalink
update: 前より早い段階でエラーが発生したので、一部変更を差し戻し
Browse files Browse the repository at this point in the history
  • Loading branch information
YKhm20020 committed Nov 14, 2024
1 parent 4ec128e commit 3278951
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
@@ -1,11 +1,13 @@
FROM golang:1.23.1-alpine3.20

WORKDIR /app
COPY ./app /go/app/

WORKDIR /go/app/
COPY . .

RUN go mod download && go mod tidy
RUN go build -o main ./cmd/main.go
RUN go build -o main .

EXPOSE $PORT

CMD ["/app/main"]
CMD ["./main.go"]

0 comments on commit 3278951

Please sign in to comment.