diff --git a/Dockerfile b/Dockerfile index 6a58dfbf..54662176 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ RUN apk add --no-cache libc6-compat WORKDIR /app COPY package.json yarn.lock ./ -RUN yarn install --frozen-lockfile --network-timeout 600000 +RUN yarn install --frozen-lockfile --network-timeout 1200000 # Rebuild the source code only when needed FROM node:20-alpine AS builder @@ -18,10 +18,7 @@ ARG TWOOPSTRACKER_API_URL \ # Learn more here: https://nextjs.org/telemetry NEXT_TELEMETRY_DISABLED=1 -ENV TWOOPSTRACKER_API_URL=${TWOOPSTRACKER_API_URL} \ - NEXT_TELEMETRY_DISABLED=${NEXT_TELEMETRY_DISABLED} - -RUN yarn build +RUN yarn build --verbose # Production image, copy all the files and run next FROM node:20-alpine AS runner @@ -34,7 +31,6 @@ WORKDIR /app RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs - # You only need to copy next.config.js if you are NOT using the default configuration COPY --from=builder /app/next.config.js ./ COPY --from=builder /app/public ./public @@ -51,4 +47,4 @@ EXPOSE 3000 ENV PORT=3000 -CMD ["node", "server.js"] +CMD ["node", "server.js"] \ No newline at end of file diff --git a/package.json b/package.json index 3542970a..94f7ab9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "twoopstrackerui", - "version": "0.1.2", + "version": "0.1.3", "private": true, "scripts": { "cms": "netlify-cms-proxy-server",