-
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.
* weird stuff happening with blog pages, aborting for now * docker builds now * after painful hours of debugging random errors im calling it for today - bun is messing up the fonts somehow * almost ready to merge * last few cv things
- Loading branch information
Showing
93 changed files
with
1,393 additions
and
11,768 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 |
---|---|---|
|
@@ -8,4 +8,5 @@ yarn-error.log | |
.vercel/ | ||
dist/ | ||
.astro/ | ||
.env | ||
.env | ||
./app |
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,37 +1,32 @@ | ||
# [Deps] Install dependencies only when needed | ||
FROM node:18-alpine AS deps | ||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /app | ||
|
||
# Install dependencies based on the preferred package manager | ||
COPY .npmrc package.json pnpm-lock.yaml pnpm-workspace.yaml ./ | ||
RUN \ | ||
if [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm fetch; \ | ||
else echo "Lockfile not found." && exit 1; \ | ||
fi | ||
# [1] Base Image | ||
FROM oven/bun:1 as base | ||
|
||
FROM base as install | ||
COPY package.json bun.lockb ./ | ||
# Needed for workspace deps | ||
COPY packages ./packages/ | ||
RUN bun install --frozen-lockfile | ||
|
||
# [2] Build image (including dev deps) | ||
FROM base as build | ||
WORKDIR /app | ||
|
||
COPY . . | ||
#RUN bun install --frozen-lockfile | ||
|
||
ARG DIRECTUS_API_TOKEN | ||
ENV DIRECTUS_TOKEN=$DIRECTUS_API_TOKEN | ||
ARG DIRECTUS_URL | ||
ENV DIRECTUS_URL=$DIRECTUS_URL | ||
RUN test -n ${DIRECTUS_API_TOKEN} | ||
RUN test -n ${DIRECTUS_URL} | ||
|
||
|
||
|
||
RUN pnpm install -r --offline && npm run build | ||
RUN bun run build | ||
|
||
# [Static] Production image, copy build assets and run the standalone node server | ||
FROM deps as server | ||
FROM base as server | ||
WORKDIR /app | ||
|
||
EXPOSE 3000 | ||
ENV HOST=0.0.0.0 | ||
ENV PORT=3000 | ||
CMD ["node", "server.mjs"] | ||
|
||
CMD ["bun", "run", "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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
22 changes: 0 additions & 22 deletions
22
packages/react-cv/src/components/education/education-item.tsx
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
packages/react-cv/src/components/experience/experience.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.