Compare commits

...

2 Commits

Author SHA1 Message Date
Flatlogic Bot
cb7e923e55 3 2025-07-16 05:02:19 +00:00
Flatlogic Bot
ed50c46e12 2 2025-07-15 10:29:15 +00:00
4 changed files with 11 additions and 5 deletions

5
.gitignore vendored
View File

@ -1,3 +1,8 @@
node_modules/ node_modules/
*/node_modules/ */node_modules/
*/build/ */build/
**/node_modules/
**/build/
.DS_Store
.env

View File

@ -5,13 +5,14 @@ COPY frontend/package.json frontend/yarn.lock ./
RUN yarn install --pure-lockfile RUN yarn install --pure-lockfile
COPY frontend . COPY frontend .
RUN yarn build RUN yarn build
RUN npx next export -o out
FROM node:20.15.1-alpine FROM node:20.15.1-alpine
WORKDIR /app WORKDIR /app
COPY backend/package.json backend/yarn.lock ./ COPY backend/package.json backend/yarn.lock ./
RUN yarn install --pure-lockfile RUN yarn install --pure-lockfile
COPY backend . COPY backend .
COPY --from=builder /app/out /app/public
COPY --from=builder /app/build /app/public COPY --from=builder /app/build /app/public
CMD ["yarn", "start"] CMD ["yarn", "start"]

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
* @type {import('next').NextConfig} * @type {import('next').NextConfig}
*/ */
const output = process.env.NODE_ENV === 'production' ? 'export' : 'standalone'; const output = 'export';
const nextConfig = { const nextConfig = {
trailingSlash: true, trailingSlash: true,
distDir: 'build', distDir: 'build',