Skip to content

Commit

Permalink
fix(deploy): change dockerfile to match other
Browse files Browse the repository at this point in the history
  • Loading branch information
vbeaucha committed Aug 17, 2023
1 parent ef5c2be commit c7a713b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions ARANGO_API/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ FROM golang:1.18.2-alpine3.16 AS build
WORKDIR /build

# We want to populate the module cache based on the go.{mod,sum} files.
COPY ARANGO_API/go.mod .
COPY ARANGO_API/go.sum .
COPY go.mod .
COPY go.sum .

RUN go mod download

COPY ARANGO_API .
COPY . .


# Build the Go app
Expand Down
6 changes: 3 additions & 3 deletions BFF/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ FROM golang:1.18.2-alpine3.16 AS build
WORKDIR /build

# We want to populate the module cache based on the go.{mod,sum} files.
COPY BFF/go.mod .
COPY BFF/go.sum .
COPY go.mod .
COPY go.sum .

RUN go mod download

COPY BFF .
COPY . .


# Build the Go app
Expand Down
6 changes: 2 additions & 4 deletions deploy/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ services:

arango_api:
build:
context: ${CORE_DIR}
dockerfile: ${ARANGO_API_BUILD_DIR}/Dockerfile
context: ${CORE_DIR}/${ARANGO_API_BUILD_DIR}
image: arango-api:${IMAGE_TAG}
profiles: ["arango"]
restart: always
Expand All @@ -99,8 +98,7 @@ services:

ogree-bff:
build:
context: ${CORE_DIR}
dockerfile: ${BFF_BUILD_DIR}/Dockerfile
context: ${CORE_DIR}/${BFF_BUILD_DIR}
image: ogree-bff:${IMAGE_TAG}
profiles: ["arango"]
restart: on-failure:10
Expand Down

0 comments on commit c7a713b

Please sign in to comment.