Fixed casing of 'as' and 'FROM' keywords
This commit is contained in:
parent
0587d08437
commit
74cc0d1e53
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM oven/bun:latest as build
|
FROM oven/bun:latest AS build
|
||||||
WORKDIR /build/app
|
WORKDIR /build/app
|
||||||
COPY api/package.json api/bun.lockb ./
|
COPY api/package.json api/bun.lockb ./
|
||||||
COPY lib ../lib
|
COPY lib ../lib
|
||||||
|
@ -7,7 +7,7 @@ RUN bun install --frozen-lockfile
|
||||||
COPY ./api .
|
COPY ./api .
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
||||||
FROM oven/bun:latest as prod
|
FROM oven/bun:latest AS prod
|
||||||
WORKDIR /app/api
|
WORKDIR /app/api
|
||||||
COPY --from=build /build/app/package.json /build/app/bun.lockb ./
|
COPY --from=build /build/app/package.json /build/app/bun.lockb ./
|
||||||
COPY --from=build /build/app/dist ./dist
|
COPY --from=build /build/app/dist ./dist
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM node:18 as build
|
FROM node:18 AS build
|
||||||
WORKDIR /build/app
|
WORKDIR /build/app
|
||||||
|
|
||||||
COPY bot/package.json bot/yarn.lock bot/.yarnrc.yml ./
|
COPY bot/package.json bot/yarn.lock bot/.yarnrc.yml ./
|
||||||
|
@ -12,7 +12,7 @@ RUN yarn install
|
||||||
COPY ./bot .
|
COPY ./bot .
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
FROM node:18 as prod
|
FROM node:18 AS prod
|
||||||
WORKDIR /app/bot
|
WORKDIR /app/bot
|
||||||
COPY --from=build /build/app/package.json /build/app/yarn.lock /build/app/.yarnrc.yml ./
|
COPY --from=build /build/app/package.json /build/app/yarn.lock /build/app/.yarnrc.yml ./
|
||||||
COPY --from=build /build/app/.yarn ./.yarn
|
COPY --from=build /build/app/.yarn ./.yarn
|
||||||
|
|
Loading…
Reference in a new issue