Skip to content

Commit

Permalink
Update Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
levichevdmitry committed Jul 7, 2021
1 parent 61b3e58 commit f9b680e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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 .
9 changes: 3 additions & 6 deletions docker/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ ENV GO111MODULE=on \
# Set a working directory
WORKDIR /app

# Copy the package files
COPY go.mod ./

# Install all go_modules
RUN go mod download

# Copy the entire project
COPY . .

# Install all go_modules
RUN go mod tidy

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

0 comments on commit f9b680e

Please sign in to comment.