im so smart - fix building
All checks were successful
deploy / deploy (push) Successful in 49s

This commit is contained in:
Lee 2023-10-20 12:04:29 +01:00
parent d28d2fc7dd
commit c743745889
2 changed files with 4 additions and 5 deletions

View File

@ -13,6 +13,10 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
ENV NEXT_TELEMETRY_DISABLED 1
ARG GIT_REV
ENV GIT_REV ${GIT_REV}
RUN npm run build
# Run the app
@ -34,9 +38,6 @@ COPY --from=builder --chown=nextjs:nodejs /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/package.json ./package.json
COPY --from=builder --chown=nextjs:nodejs /app/next.config.js ./next.config.js
ARG GIT_REV
ENV GIT_REV ${GIT_REV}
USER nextjs
EXPOSE 80
ENV HOSTNAME "0.0.0.0"

View File

@ -1,7 +1,5 @@
const nextBuildId = require("next-build-id");
console.log("Building with build id: " + process.env.GIT_REV);
/** @type {import('next').NextConfig} */
const nextConfig = {
generateEtags: true,