-
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.
Merge pull request #14 from gabeklavans/feature/revert-bun
Feature/revert-bun
- Loading branch information
Showing
10 changed files
with
3,231 additions
and
45 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
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,14 +1,19 @@ | ||
FROM oven/bun:latest | ||
FROM node:18-alpine | ||
|
||
RUN apk update && apk upgrade && \ | ||
apk add --no-cache git | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
COPY ./ /usr/src/app | ||
RUN bun install --production | ||
RUN npm install --production=false | ||
RUN npm run build | ||
# only keep what's needed for prod | ||
RUN rm -rf node_modules && npm install --production && npm cache clean --force | ||
ENV NODE_ENV production | ||
ENV PORT 80 | ||
|
||
|
||
EXPOSE 80 | ||
|
||
CMD [ "bun", "start" ] | ||
CMD [ "npm", "start" ] |
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
Oops, something went wrong.