Skip to content

Commit

Permalink
ci: run remix-serve with bun
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdonado committed Dec 13, 2023
1 parent 5f4340b commit e2fcb88
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14,530 deletions.
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
FROM node:20-alpine AS base
FROM oven/bun:1-alpine AS base
WORKDIR /usr/src/app
RUN apk update && apk upgrade npm

# TEMPFIX
RUN apk update && apk add nodejs npm

FROM base as install
COPY package.json package-lock.json .
RUN npm ci
COPY package.json .
# TEMPFIX
RUN npm install

FROM install AS prerelease
ENV NODE_ENV=production
COPY --from=install /usr/src/app/node_modules node_modules
ADD . .
RUN npm run build
RUN bun run build

FROM base AS release
ENV NODE_ENV=production
COPY --from=prerelease /usr/src/app .

EXPOSE 3000/tcp
CMD ["npm", "run", "start"]
CMD ["bun", "run", "start"]
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit e2fcb88

Please sign in to comment.