### Description This pull request migrates to Nuxt 4.0.0, adds docker, and uses Orval and OpenAPI 3.0 specification to interact with backend Reviewed-on: #1 Co-authored-by: bivashy <botyrbojey@gmail.com> Co-committed-by: bivashy <botyrbojey@gmail.com>
26 lines
476 B
Docker
26 lines
476 B
Docker
# Build
|
|
FROM oven/bun:1 AS build
|
|
WORKDIR /app
|
|
|
|
COPY package.json bun.lock ./
|
|
|
|
RUN bun install --frozen-lockfile --ignore-scripts
|
|
|
|
COPY . .
|
|
|
|
RUN bun --bun run build
|
|
|
|
# Launch
|
|
FROM oven/bun:1 AS production
|
|
RUN groupadd --gid 1001 nuxt-app \
|
|
&& useradd --uid 1001 --gid nuxt-app \
|
|
--shell /bin/bash --create-home nuxt-app
|
|
|
|
USER nuxt-app:nuxt-app
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /app/.output /app
|
|
|
|
EXPOSE 3000/tcp
|
|
ENTRYPOINT [ "bun", "--bun", "run", "/app/server/index.mjs" ]
|