@@ -17,9 +17,11 @@ ENV NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=${MAPBOX_ACCESS_TOKEN}
17
17
USER node
18
18
WORKDIR /app
19
19
20
+ RUN mkdir -p /app/packages/akane-next
20
21
COPY --chown=node:node package.json package-lock.json ./
22
+ COPY --chown=node:node packages/akane-next/package.json ./packages/akane-next/
21
23
22
- RUN npm ci
24
+ RUN npm install
23
25
24
26
#
25
27
# 開発環境向け
@@ -29,8 +31,9 @@ FROM base AS development
29
31
USER node
30
32
WORKDIR /app
31
33
32
- COPY --chown=node:node . .
34
+ COPY --chown=node:node ./packages/akane-next ./packages/akane-next
33
35
COPY --from=base --chown=node:node /app/node_modules ./node_modules
36
+ WORKDIR /app/packages/akane-next
34
37
35
38
RUN npm run prisma:generate
36
39
@@ -44,8 +47,9 @@ FROM base AS build
44
47
RUN mkdir -p /app/.next
45
48
46
49
WORKDIR /app
47
- COPY --chown=node:node . .
50
+ COPY --chown=node:node ./packages/akane-next ./packages/akane-next
48
51
COPY --from=base --chown=node:node /app/node_modules ./node_modules
52
+ WORKDIR /app/packages/akane-next
49
53
50
54
RUN npm run build
51
55
@@ -55,12 +59,12 @@ RUN npm run build
55
59
FROM base AS production
56
60
57
61
USER node
58
- WORKDIR /app
62
+ WORKDIR /app/packages/akane-next
59
63
60
- COPY --chown=node:node --from=build /app/.next ./.next
61
- COPY --chown=node:node --from=build /app/public ./public
62
- COPY --chown=node:node --from=build /app/next.config.ts ./next.config.ts
63
- COPY --chown=node:node --from=build /app/package.json ./package.json
64
- COPY --chown=node:node --from=build /app/node_modules ./node_modules
64
+ COPY --chown=node:node --from=build /app/packages/akane-next/ .next ./.next
65
+ COPY --chown=node:node --from=build /app/packages/akane-next/ public ./public
66
+ COPY --chown=node:node --from=build /app/packages/akane-next/ next.config.ts ./next.config.ts
67
+ COPY --chown=node:node --from=build /app/packages/akane-next/ package.json ./package.json
68
+ COPY --chown=node:node --from=build /app/node_modules ../.. /node_modules
65
69
66
- CMD ["npm" , "start" ]
70
+ CMD ["npm" , "start" ]
0 commit comments