From 74cc0d1e534f5cd87958a0410cbcf2cb3709df3e Mon Sep 17 00:00:00 2001 From: Declan Chidlow Date: Wed, 7 Aug 2024 11:47:11 +0800 Subject: [PATCH] Fixed casing of 'as' and 'FROM' keywords --- api/Dockerfile | 4 ++-- bot/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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