Skip to content

Commit

Permalink
update Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
levichevdmitry committed Jul 26, 2021
1 parent 8efef72 commit 61820ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 2 additions & 5 deletions docker/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ ENV GO111MODULE=on \
WORKDIR /app

# Copy the package files
COPY go.mod ./
COPY . .

# Install all go_modules
RUN go mod download

# Copy the package files
COPY . .
RUN go mod tidy

# Build the project
RUN go build -o /go/bin/run .
8 changes: 3 additions & 5 deletions docker/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ ENV GO111MODULE=on \
# Set a working directory
WORKDIR /app

# Copy the package files
COPY go.mod ./
# Copy the entire project
COPY . .

# Install all go_modules
RUN go mod download
RUN go mod tidy

# Copy the entire project
COPY . .

# Specify the command from running tests
CMD go test -v ./test/...

0 comments on commit 61820ab

Please sign in to comment.