2
This commit is contained in:
parent
775337397e
commit
ed50c46e12
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,8 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
*/node_modules/
|
*/node_modules/
|
||||||
*/build/
|
*/build/
|
||||||
|
|
||||||
|
**/node_modules/
|
||||||
|
**/build/
|
||||||
|
.DS_Store
|
||||||
|
.env
|
||||||
@ -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
@ -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',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user