-
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.
fix: small tweak of logo + Docker setup
- Loading branch information
1 parent
246f4e6
commit 90b578c
Showing
8 changed files
with
227 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.DS_Store | ||
node_modules | ||
dist | ||
.vercel | ||
.git |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
FROM node:18-slim AS base | ||
|
||
WORKDIR /app | ||
|
||
# By copying only the package.json and pnpm-lock.yaml files | ||
COPY package.json pnpm-lock.yaml ./ | ||
|
||
# Copying the `.npmrc` file | ||
COPY .npmrc ./ | ||
|
||
# Copying the other config files | ||
COPY ./tsconfig.json ./ | ||
COPY ./prettier.config.cjs ./ | ||
COPY ./seo-config.ts ./ | ||
|
||
# Installing pnpm | ||
RUN npm install -g pnpm | ||
|
||
FROM base AS prod-deps | ||
|
||
RUN pnpm install --production | ||
|
||
FROM base AS build-deps | ||
|
||
RUN pnpm install --production=false | ||
|
||
FROM build-deps AS build | ||
|
||
ARG PORT=3000 | ||
ENV PORT=$PORT | ||
ENV HOST=0.0.0.0 | ||
ENV CONTAINER=true | ||
|
||
COPY . . | ||
|
||
RUN pnpm run build | ||
|
||
RUN pnpm prune --prod | ||
|
||
FROM base AS runtime | ||
|
||
ARG PORT=3000 | ||
ENV PORT=$PORT | ||
ENV HOST=0.0.0.0 | ||
|
||
COPY --from=prod-deps /app/node_modules ./node_modules | ||
|
||
COPY --from=build /app/dist ./dist | ||
|
||
EXPOSE $PORT:$PORT | ||
|
||
CMD node ./dist/server/entry.mjs |
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
Oops, something went wrong.