Skip to content

Commit 2aa826b

Browse files
committed
build: clean up docker deployment
1 parent 8d13f8b commit 2aa826b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.react-router
22
build
33
node_modules
4-
README.md
4+
prisma/migrations
5+
README.md

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ FROM base AS build
77
COPY . /usr/src/app
88
WORKDIR /usr/src/app
99
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
10-
RUN pnpm run -r build
11-
RUN pnpm deploy --filter=web --prod /prod/web
10+
RUN pnpm run build
11+
RUN pnpm --filter=web --prod deploy --legacy web
1212

1313
FROM base AS web
14-
COPY --from=build /prod/web /prod/web
14+
COPY --from=build /usr/src/app/web /prod/web
1515
WORKDIR /prod/web
1616
EXPOSE 3000
1717
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)