Skip to content

Commit

Permalink
Update dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Sep 17, 2023
1 parent d182f39 commit 10c5887
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions internal/test/e2e/databasesql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM golang:1.21
WORKDIR /sample-app

WORKDIR /usr/src/app

COPY . .
RUN go build -o main
RUN go mod init app && go mod tidy && go build -v -o /usr/local/bin/app ./...

CMD ["app"]
8 changes: 6 additions & 2 deletions internal/test/e2e/gin/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM golang:1.21
WORKDIR /sample-app

WORKDIR /usr/src/app

COPY . .
RUN go build -o main
RUN go mod init app && go mod tidy && go build -v -o /usr/local/bin/app ./...

CMD ["app"]
8 changes: 6 additions & 2 deletions internal/test/e2e/nethttp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM golang:1.21
WORKDIR /sample-app

WORKDIR /usr/src/app

COPY . .
RUN go build -o main
RUN go mod init app && go mod tidy && go build -v -o /usr/local/bin/app ./...

CMD ["app"]

0 comments on commit 10c5887

Please sign in to comment.