commit 111238ae9f40d53dd9b8f5e7e15fe2ed630b5848 Author: Kunthawat Greethong Date: Tue Apr 28 11:12:25 2026 +0700 Astro 6.1.7 simple test diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ce47e26 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules +dist +.env +*.log \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4751686 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM node:22-alpine + +WORKDIR /app + +COPY package*.json ./ +RUN npm install + +COPY . . + +EXPOSE 4321 + +CMD ["npm", "run", "dev"] \ No newline at end of file diff --git a/astro.config.mjs b/astro.config.mjs new file mode 100644 index 0000000..7654659 --- /dev/null +++ b/astro.config.mjs @@ -0,0 +1,8 @@ +import { defineConfig } from 'astro/config' + +export default defineConfig({ + server: { + host: '0.0.0.0', + port: 4321, + }, +}) \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..6025204 --- /dev/null +++ b/package.json @@ -0,0 +1,12 @@ +{ + "name": "astro6-simple", + "type": "module", + "scripts": { + "dev": "astro dev --host 0.0.0.0", + "build": "astro build", + "preview": "astro preview" + }, + "dependencies": { + "astro": "^6.1.7" + } +} \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..b06ac38 --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,26 @@ +--- +const name = "Astro 6 Simple" +--- + + + + + {name} + + +

It works!

+

Astro 6.1.7 static site

+ + + + \ No newline at end of file