diff --git a/Dockerfile b/Dockerfile index 652cc2d..1e65ecb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM node:20.14.0-alpine3.19 AS base -FROM base as builder +FROM base AS builder WORKDIR /app RUN yarn global add turbo@1.13.4 COPY . . @@ -12,6 +12,6 @@ COPY --from=builder /app/out/json/ . COPY --from=builder /app/out/yarn.lock ./yarn.lock RUN yarn workspaces focus @turbo/cms --production COPY --from=builder /app/out/full/ . -RUN yarn dlx turbo@1.13.4 run build --filter=@turbo/cms... -ENTRYPOINT ["yarn", "dlx", "turbo@1.13.4", "run", "start", "--filter=@turbo/cms..."] +RUN yarn build +CMD ["yarn", "start"] EXPOSE 1337 \ No newline at end of file diff --git a/apps/client/Dockerfile b/apps/client/Dockerfile index 410d331..7415711 100644 --- a/apps/client/Dockerfile +++ b/apps/client/Dockerfile @@ -1,6 +1,6 @@ FROM node:20.14.0-alpine3.19 AS base -FROM base as builder +FROM base AS builder WORKDIR /app RUN yarn global add turbo COPY . . diff --git a/apps/cms/Dockerfile b/apps/cms/Dockerfile index f5b1184..ed21a36 100644 --- a/apps/cms/Dockerfile +++ b/apps/cms/Dockerfile @@ -1,6 +1,6 @@ FROM node:20.14.0-alpine3.19 AS base -FROM base as builder +FROM base AS builder WORKDIR /app RUN yarn global add turbo COPY . .