Skip to content

Commit

Permalink
Merge pull request #114 from jeiltodo/temp/common-client
Browse files Browse the repository at this point in the history
fix: dockerfile 수정
  • Loading branch information
Dragonite-Lee authored Aug 22, 2024
2 parents 2e98de3 + a67db93 commit 278f0d4
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 278f0d4

Please sign in to comment.