diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..16d54bb --- /dev/null +++ b/.dockerignore @@ -0,0 +1,24 @@ +# build output +dist/ +# generated types +.astro/ + +# dependencies +node_modules/ + +# logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + + +# environment variables +.env +.env.production + +# macOS-specific files +.DS_Store + +# jetbrains setting folder +.idea/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9c1d484 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,46 @@ +# syntax = docker/dockerfile:1 + +# Adjust BUN_VERSION as desired +ARG BUN_VERSION=1.1.38 +FROM oven/bun:${BUN_VERSION}-slim as base + +LABEL fly_launch_runtime="Bun" + +# Bun app lives here +WORKDIR /app + +# Set production environment +ENV NODE_ENV="production" + + +# Throw-away build stage to reduce size of final image +FROM base as build + +# Install packages needed to build node modules +RUN apt-get update -qq && \ + apt-get install --no-install-recommends -y build-essential pkg-config python-is-python3 + +# Install node modules +COPY bun.lockb package.json ./ +RUN bun install + +# Copy application code +COPY . . + +# Build application +RUN bun --bun run build + +# Remove development dependencies +RUN rm -rf node_modules && \ + bun install --ci + + +# Final stage for app image +FROM nginx + +# Copy built application +COPY --from=build /app/dist /usr/share/nginx/html + +# Start the server by default, this can be overwritten at runtime +EXPOSE 80 +CMD [ "/usr/sbin/nginx", "-g", "daemon off;" ] diff --git a/bun.lockb b/bun.lockb index 35c74f0..0e47561 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..b0872d4 --- /dev/null +++ b/fly.toml @@ -0,0 +1,22 @@ +# fly.toml app configuration file generated for athen-lab-website on 2024-12-06T23:12:45Z +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = 'athen-lab-website' +primary_region = 'lhr' + +[build] + +[http_service] + internal_port = 80 + force_https = true + auto_stop_machines = 'stop' + auto_start_machines = true + min_machines_running = 0 + processes = ['app'] + +[[vm]] + memory = '1gb' + cpu_kind = 'shared' + cpus = 1 diff --git a/package.json b/package.json index db65a3d..81d84c3 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "tailwindcss": "^3.4.16" }, "devDependencies": { + "@flydotio/dockerfile": "^0.5.9", "@tailwindcss/typography": "^0.5.15" } } \ No newline at end of file diff --git a/src/assets/logo.svg b/src/assets/logo.svg index 184873b..e69de29 100644 --- a/src/assets/logo.svg +++ b/src/assets/logo.svg @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/src/pages/index.astro b/src/pages/index.astro index ba319c6..e77976d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -11,18 +11,16 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; - -
+ +
Athen Lab
-
-

Athen Lab is an independent lab that conducts open-source machine learning research.

+
+

Athen Lab is an independent machine learning research lab. We believe that AI should be open source and widely available.

The current research is to build a state-of-the-art AI image detector.

-

Find me on x.com to follow the research.

+


+

Founded by Kenneth. Find me on x.com.

-