Skip to content

Commit

Permalink
updated the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ibilalkayy committed Feb 29, 2024
1 parent fc57ae7 commit c12f3a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 28 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*.md
.git
main.go
LICENSE
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
FROM golang:1.22.0-alpine3.19

ARG SERVICE_NAME

RUN mkdir -p /app

WORKDIR /app

COPY cmd/transaction/main/main.go /app
COPY go.mod /app
COPY go.sum /app

RUN go mod download

COPY . /app

RUN go build -o flowt .
RUN go mod download

RUN go build -o flow .

CMD [ "./flowt" ]
CMD [ "./flow" ]
10 changes: 0 additions & 10 deletions cmd/budget/main/main.go

This file was deleted.

10 changes: 0 additions & 10 deletions cmd/transaction/main/main.go

This file was deleted.

0 comments on commit c12f3a3

Please sign in to comment.