Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed Oct 23, 2024
1 parent 72f0f61 commit 6594f3b
Show file tree
Hide file tree
Showing 3 changed files with 801 additions and 1,003 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ WORKDIR /usr/src/app
COPY package*.json ./
RUN npm ci
COPY . .
ENV NEXT_PRIVATE_STANDALONE true
RUN npm run build

FROM node:slim
LABEL Maintainer Michael Shihjay Chen <[email protected]>
LABEL Maintainer="Michael Shihjay Chen <[email protected]>"
WORKDIR /usr/src/app
ENV NODE_ENV production
ENV NODE_ENV=production
COPY --from=builder /usr/src/app/.next/standalone ./
COPY --from=builder /usr/src/app/.next/static ./.next/static
RUN mkdir -p /usr/src/app/trustees
RUN mkdir -p /usr/src/app/routes
EXPOSE 3000
ENV HOSTNAME "0.0.0.0"
ENV HOSTNAME="0.0.0.0"
CMD ["node", "server.js"]
3 changes: 2 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const nextConfig = {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
path: false
path: false,
};
config.cache = false;
return config;
},
}
Expand Down
Loading

0 comments on commit 6594f3b

Please sign in to comment.