mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 19:13:51 +00:00
hotfix
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
timmypidashev.dev {
|
timmypidashev.dev {
|
||||||
tls pidashev.tim@gmail.com
|
tls pidashev.tim@gmail.com
|
||||||
|
|
||||||
reverse_proxy web:4321
|
reverse_proxy 127.0.0.1:3000
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
# Stage 1: Build and install dependencies
|
# Stage 1: Build and install dependencies
|
||||||
FROM node:22-alpine AS builder
|
FROM node:22-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install necessary dependencies, including pnpm
|
# Install necessary dependencies, including pnpm
|
||||||
@@ -8,9 +7,15 @@ RUN set -eux \
|
|||||||
&& apk add --no-cache nodejs curl \
|
&& apk add --no-cache nodejs curl \
|
||||||
&& npm install -g pnpm
|
&& npm install -g pnpm
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files first (for better caching)
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
# Now copy the rest of your source code
|
||||||
|
COPY . .
|
||||||
|
|
||||||
# Set build arguments
|
# Set build arguments
|
||||||
ARG CONTAINER_WEB_VERSION
|
ARG CONTAINER_WEB_VERSION
|
||||||
ARG ENVIRONMENT
|
ARG ENVIRONMENT
|
||||||
@@ -23,19 +28,18 @@ RUN echo "PUBLIC_VERSION=${CONTAINER_WEB_VERSION}" > /app/.env && \
|
|||||||
echo "PUBLIC_BUILD_DATE=${BUILD_DATE}" >> /app/.env && \
|
echo "PUBLIC_BUILD_DATE=${BUILD_DATE}" >> /app/.env && \
|
||||||
echo "PUBLIC_GIT_COMMIT=${GIT_COMMIT}" >> /app/.env
|
echo "PUBLIC_GIT_COMMIT=${GIT_COMMIT}" >> /app/.env
|
||||||
|
|
||||||
# Install dependencies (including development dependencies) and build the project
|
# Build the project
|
||||||
RUN pnpm install --frozen-lockfile && pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
# Stage 2: Set up the production environment
|
# Stage 2: Serve static files
|
||||||
FROM node:22-alpine
|
FROM node:22-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Expose the port for the application
|
# Install serve
|
||||||
EXPOSE 3000
|
RUN npm install -g serve
|
||||||
|
|
||||||
# Copy the build artifacts from the builder stage
|
# Copy built files
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
|
|
||||||
# Set the command to run the application
|
EXPOSE 3000
|
||||||
CMD ["node", "./dist/server/entry.mjs"]
|
CMD ["serve", "-s", "dist", "-l", "3000"]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: "Darkbox"
|
title: "Darkbox"
|
||||||
description: "My gruvbox theme, with a pure black background"
|
description: "My gruvbox theme, with a pure black background"
|
||||||
githubUrl: "https://github.com/timmypidashev/web"
|
githubUrl: "https://github.com/timmypidashev/darkbox.nvim"
|
||||||
techStack: ["Neovim", "Lua"]
|
techStack: ["Neovim", "Lua"]
|
||||||
date: "2025-01-05"
|
date: "2025-01-05"
|
||||||
image: "/projects/darkbox/thumbnail.jpeg"
|
image: "/projects/darkbox/thumbnail.jpeg"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import Timeline from "@/components/about/timeline";
|
|||||||
import CurrentFocus from "@/components/about/current-focus";
|
import CurrentFocus from "@/components/about/current-focus";
|
||||||
import OutsideCoding from "@/components/about/outside-coding";
|
import OutsideCoding from "@/components/about/outside-coding";
|
||||||
---
|
---
|
||||||
<ContentLayout content={{ title: "About | Timothy Pidashev" }}>
|
<ContentLayout title="About | Timothy Pidashev">
|
||||||
<div class="min-h-screen">
|
<div class="min-h-screen">
|
||||||
<section class="h-screen flex items-center justify-center">
|
<section class="h-screen flex items-center justify-center">
|
||||||
<Intro client:load />
|
<Intro client:load />
|
||||||
|
|||||||
@@ -11,6 +11,6 @@ const posts = (await getCollection("blog", ({ data }) => {
|
|||||||
);
|
);
|
||||||
---
|
---
|
||||||
|
|
||||||
<ContentLayout content={{ title: "Blog | Timothy Pidashev" }}>
|
<ContentLayout content="Blog | Timothy Pidashev">
|
||||||
<BlogPostList posts={posts} client:load />
|
<BlogPostList posts={posts} client:load />
|
||||||
</ContentLayout>
|
</ContentLayout>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import ContentLayout from "@/layouts/content.astro";
|
|||||||
import Resume from "@/components/resume";
|
import Resume from "@/components/resume";
|
||||||
---
|
---
|
||||||
|
|
||||||
<ContentLayout content={{ title: "Resume | Timothy Pidashev" }}>
|
<ContentLayout title="Resume | Timothy Pidashev">
|
||||||
<div class="flex items-center justify-center w-full">
|
<div class="flex items-center justify-center w-full">
|
||||||
<Resume client:load />
|
<Resume client:load />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user