Skip to content

Commit

Permalink
fix: dockerfile 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragonite-Lee committed Aug 22, 2024
1 parent 4ea2155 commit a67db93
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ FROM node:20-alpine AS builder
WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules

RUN yarn build --filter=admin

FROM node:20-alpine AS runner
Expand All @@ -22,7 +23,6 @@ COPY --from=builder /app/apps/admin/.next/standalone/apps/admin ./
COPY --from=builder /app/apps/admin/.next/static ./.next/static
COPY --from=builder /app/apps/admin/public ./public
COPY --from=builder /app/apps/admin/next.config.js ./next.config.js
COPY --from=builder /app/node_modules ./node_modules

ENV PORT=3001

Expand Down
3 changes: 3 additions & 0 deletions apps/admin/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ module.exports = {
basePath: '/admin',
assetPrefix: '/admin/',
output: 'standalone',
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
},
reactStrictMode: true,
transpilePackages: ['@jeiltodo/ui'],
eslint: {
Expand Down
1 change: 0 additions & 1 deletion apps/user/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ WORKDIR /app
COPY --from=builder /app/apps/user/.next/standalone/apps/user ./
COPY --from=builder /app/apps/user/.next/static ./.next/static
COPY --from=builder /app/apps/user/public ./public
COPY --from=builder /app/node_modules ./node_modules

EXPOSE 3000
CMD ["node", "server.js"]
3 changes: 3 additions & 0 deletions apps/user/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/** @type {import('next').NextConfig} */
module.exports = {
output: 'standalone',
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
},
reactStrictMode: true,
transpilePackages: ['@jeiltodo/ui'],
eslint: {
Expand Down

0 comments on commit a67db93

Please sign in to comment.