Bumped npm build config issues
This commit is contained in:
+3
-3
@@ -21,16 +21,16 @@ RUN go get -v
|
|||||||
# From November 2022, CGO is enabled due to packages
|
# From November 2022, CGO is enabled due to packages
|
||||||
# that we use requiring it. This is a temporary fix
|
# that we use requiring it. This is a temporary fix
|
||||||
# and makes us HAVE to install libc compatibility packages farther down.
|
# and makes us HAVE to install libc compatibility packages farther down.
|
||||||
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o webapp .
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o webapp .
|
||||||
|
|
||||||
# Certificate build - gets required certs
|
# Certificate build - gets required certs
|
||||||
FROM alpine:latest as certs
|
#FROM alpine:latest as certs
|
||||||
RUN apk --update add ca-certificates
|
|
||||||
|
|
||||||
# Sets up the final image
|
# Sets up the final image
|
||||||
FROM alpine:3.17.0
|
FROM alpine:3.17.0
|
||||||
|
|
||||||
# FIXME: Install cgo because CGO_ENABLED=1 during build
|
# FIXME: Install cgo because CGO_ENABLED=1 during build
|
||||||
|
RUN apk add --update ca-certificates
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
RUN apk add --no-cache libstdc++
|
RUN apk add --no-cache libstdc++
|
||||||
|
|
||||||
|
|||||||
+6
-3
@@ -1,5 +1,5 @@
|
|||||||
# Build environment
|
# Build environment
|
||||||
FROM node:21 as builder
|
FROM node:23 as builder
|
||||||
|
|
||||||
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@@ -22,8 +22,11 @@ COPY ./src /usr/src/app/src/
|
|||||||
COPY ./*.sh /usr/src/app/
|
COPY ./*.sh /usr/src/app/
|
||||||
COPY ./*.json /usr/src/app/
|
COPY ./*.json /usr/src/app/
|
||||||
|
|
||||||
#RUN rm -rf /usr/src/app/node_modules/webpack
|
RUN npm config set fetch-retries 3 # Number of retry attempts (default is 2)
|
||||||
#RUN yarn build --verbose
|
RUN npm config set fetch-retry-mintimeout 5000 # Minimum wait time before retrying (in ms, default is 10000)
|
||||||
|
RUN npm config set fetch-retry-maxtimeout 60000 # Maximum wait time before retrying (in ms, default is 60000)
|
||||||
|
RUN npm config set fetch-timeout 60000 # Overall fetch timeout (in ms, default is 300000)
|
||||||
|
|
||||||
RUN npm run build --loglevel verbose 2>&1
|
RUN npm run build --loglevel verbose 2>&1
|
||||||
|
|
||||||
# Production environment
|
# Production environment
|
||||||
|
|||||||
@@ -7,10 +7,11 @@ COPY orborus.go /app/orborus.go
|
|||||||
COPY go.mod /app/go.mod
|
COPY go.mod /app/go.mod
|
||||||
|
|
||||||
RUN go get
|
RUN go get
|
||||||
|
RUN go build -v
|
||||||
|
|
||||||
#RUN go mod tidy
|
# Enabled CGO January 2025
|
||||||
RUN go build
|
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o orborus.
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o orborus .
|
#RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o orborus .
|
||||||
|
|
||||||
FROM alpine:3.15.0
|
FROM alpine:3.15.0
|
||||||
RUN apk add --no-cache bash tzdata
|
RUN apk add --no-cache bash tzdata
|
||||||
|
|||||||
Reference in New Issue
Block a user