Dockerfile yarn -> bun
Some checks failed
Deploy Frontend / docker (17, 3.8.5) (push) Failing after 50s

This commit is contained in:
Braydon 2024-04-21 11:08:52 -04:00
parent 42f9e7090f
commit a31dcc7618
2 changed files with 5 additions and 8 deletions

@ -1,11 +1,11 @@
FROM fascinated/docker-images:nodejs_20_with_yarn AS base
FROM imbios/bun-node AS base
# Install dependencies
FROM base AS depends
WORKDIR /usr/src/app
COPY package.json* yarn.lock* ./
RUN yarn install --frozen-lockfile --quiet
COPY package.json* bun.lockb* ./
RUN bun install --frozen-lockfile --quiet
# Build the app
@ -14,7 +14,7 @@ WORKDIR /usr/src/app
COPY --from=depends /usr/src/app/node_modules ./node_modules
COPY . .
ENV NEXT_TELEMETRY_DISABLED 1
RUN yarn run build
RUN bun run build
# Run the app
@ -43,4 +43,4 @@ EXPOSE 80
ENV PORT 80
USER nextjs
CMD ["yarn", "start"]
CMD ["bun", "start"]

@ -19,7 +19,4 @@ Some of the core features of RESTfulMC include:
| [Player Lookup](/player) | praesent omittam mollis maximus has pretium mediocritatem eripuit |
| [Server Lookup](/server) | sapien faucibus numquam ponderum utamur himenaeos menandri tation |
## Test
bla bla bla
---