feature/search-prototype (#1)
### 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>
This commit is contained in:
25
Dockerfile.prod
Normal file
25
Dockerfile.prod
Normal file
@ -0,0 +1,25 @@
|
||||
# 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" ]
|
Reference in New Issue
Block a user