-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
11 additions
and
14,530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Oops, something went wrong.