Skip to content

Commit

Permalink
Merge pull request #117 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 23, 2024
2 parents a066c74 + 9c8b38f commit ce5b228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 4 additions & 2 deletions apps/admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ WORKDIR /app

RUN apk add --no-cache bash curl

RUN npm i -g npm
RUN corepack enable && corepack prepare yarn@stable --activate

COPY package.json yarn.lock ./
COPY . .
RUN yarn install --frozen-lockfile

FROM node:20-alpine AS builder
Expand All @@ -23,6 +22,9 @@ 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/packages ./packages
COPY --from=builder /app/apps/admin/package.json ./packages
COPY --from=builder /app/node_modules/next ./node_modules/next

ENV PORT=3001

Expand Down
5 changes: 0 additions & 5 deletions apps/admin/next.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
const path = require('path');

/** @type {import('next').NextConfig} */
module.exports = {
basePath: '/admin',
assetPrefix: '/admin/',
output: 'standalone',
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
},
reactStrictMode: true,
transpilePackages: ['@jeiltodo/ui'],
eslint: {
Expand Down

0 comments on commit ce5b228

Please sign in to comment.