Skip to content

Commit

Permalink
arm: increase timeouts to support CI (#169)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Stephens <pat@calyptia.com>
patrick-stephens authored Jul 4, 2023
1 parent 3034fcd commit 4a45b7a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ ENV NEXT_PUBLIC_VIVO_BASE_PATH=${vivo_base_path}
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
RUN \
apk add --no-cache git==2.40.1-r0 openssh==9.3_p1-r3 && \
yarn install && \
yarn install --network-timeout 1000000000 && \
yarn next build && \
yarn next export && \
# There's no way to change absolute URL references in css files using next.js
@@ -29,7 +29,9 @@ RUN \
#########
FROM golang:1.20 as service-builder

ENV CGO_ENABLED=0
# Ensure we produce a static binary to prevent issues between this image and the production one
ARG TARGETOS TARGETARCH
ENV GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0

# Working directory
WORKDIR /app
@@ -38,11 +40,11 @@ WORKDIR /app
COPY packages/service .

# Build the go app
RUN go build -o vivo-service .
RUN go build -o vivo-service -trimpath -tags netgo,osusergo .

######## Fluent Bit
FROM fluent/fluent-bit:2.1.6 as production
ARG vivo_base_path
ARG vivo_base_path=/

### Set working directory
WORKDIR /app

0 comments on commit 4a45b7a

Please sign in to comment.