-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix build process and code smells
- Loading branch information
1 parent
6b8d778
commit ca284f0
Showing
12 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
Binary file not shown.
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,9 +1,10 @@ | ||
FROM oven/bun:1.0.14 | ||
FROM oven/bun:1.0.15 | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN bun install | ||
RUN bun install --frozen-lockfile | ||
ENV NODE_ENV development | ||
|
||
EXPOSE 3000 | ||
CMD ["bun", "--watch", "api/routes/index.ts"] |
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,8 +1,9 @@ | ||
FROM oven/bun:1.0.14 | ||
FROM oven/bun:1.0.15 | ||
WORKDIR /app | ||
|
||
COPY . . | ||
RUN bun install | ||
RUN bun install --production --frozen-lockfile | ||
ENV NODE_ENV production | ||
|
||
EXPOSE 3000 | ||
CMD ["bun", "run", "api/routes/index.ts"] |
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,12 +1,14 @@ | ||
FROM oven/bun:1.0.14 | ||
FROM oven/bun:1.0.15 | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN bun install | ||
RUN bun install --frozen-lockfile | ||
|
||
RUN apt-get update && apt-get install -y tzdata | ||
ENV TZ=Asia/Singapore | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
RUN ln -snf /usr/share/zoneinfo/"$TZ" /etc/localtime && echo "$TZ" > /etc/timezone | ||
RUN apt-get clean | ||
|
||
ENV NODE_ENV development | ||
CMD ["bun", "--watch", "scheduler/scheduler.ts"] |
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,13 +1,14 @@ | ||
FROM oven/bun:1.0.14 | ||
FROM oven/bun:1.0.15 | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN bun install | ||
RUN bun install --production --frozen-lockfile | ||
|
||
RUN apt-get update && apt-get install -y tzdata | ||
ENV TZ=Asia/Singapore | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN ln -snf /usr/share/zoneinfo/"$TZ" /etc/localtime && echo "$TZ" > /etc/timezone | ||
RUN apt-get clean | ||
|
||
ENV NODE_ENV production | ||
CMD ["bun", "run", "scheduler/scheduler.ts"] |
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,9 +1,9 @@ | ||
FROM oven/bun:1.0.14 | ||
FROM oven/bun:1.0.15 | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN bun install | ||
RUN bun install --frozen-lockfile | ||
|
||
EXPOSE 1234 | ||
CMD ["bun", "run", "api/routes/index.ts"] |
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
Binary file not shown.
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,9 +1,11 @@ | ||
FROM oven/bun:1.0.14 | ||
FROM oven/bun:1.0.15 | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN bun install | ||
ENV NODE_ENV development | ||
RUN bun install --frozen-lockfile | ||
|
||
|
||
EXPOSE 3000 | ||
CMD ["bun", "run", "dev"] |
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,11 +1,13 @@ | ||
FROM oven/bun:1.0.14 | ||
FROM oven/bun:1.0.15 | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN bun install | ||
|
||
ENV NODE_ENV production | ||
RUN bun install --frozen-lockfile | ||
RUN bun run build | ||
|
||
|
||
EXPOSE 3000 | ||
CMD ["bun", "run", "start"] |