diff --git a/api/Dockerfile b/api/Dockerfile index fcc3014..e575cf9 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,4 +1,4 @@ -FROM oven/bun:latest as build +FROM oven/bun:latest AS build WORKDIR /build/app COPY api/package.json api/bun.lockb ./ COPY lib ../lib @@ -7,7 +7,7 @@ RUN bun install --frozen-lockfile COPY ./api . RUN bun run build -FROM oven/bun:latest as prod +FROM oven/bun:latest AS prod WORKDIR /app/api COPY --from=build /build/app/package.json /build/app/bun.lockb ./ COPY --from=build /build/app/dist ./dist diff --git a/bot/Dockerfile b/bot/Dockerfile index 1017ccc..eccf239 100644 --- a/bot/Dockerfile +++ b/bot/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18 as build +FROM node:18 AS build WORKDIR /build/app COPY bot/package.json bot/yarn.lock bot/.yarnrc.yml ./ @@ -12,7 +12,7 @@ RUN yarn install COPY ./bot . RUN yarn build -FROM node:18 as prod +FROM node:18 AS prod WORKDIR /app/bot COPY --from=build /build/app/package.json /build/app/yarn.lock /build/app/.yarnrc.yml ./ COPY --from=build /build/app/.yarn ./.yarn