This commit is contained in:
Korbs 2024-11-20 22:19:59 -05:00
parent f497bc20ef
commit 07d40a6f3d
5 changed files with 15 additions and 8 deletions

View file

@ -1 +1,2 @@
.DS_Store .DS_Store
dist

View file

@ -1,9 +1,11 @@
FROM node:lts AS build FROM node:lts AS runtime
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN npm i
RUN npm run build RUN npm run build
FROM httpd:2.4 AS runtime ENV HOST=0.0.0.0
COPY --from=build /app/dist /usr/local/apache2/htdocs/ ENV PORT=4321
EXPOSE 80 EXPOSE 4321
CMD node ./dist/server/entry.mjs

View file

@ -4,6 +4,7 @@ import robotsTxt from 'astro-robots-txt';
import mdx from '@astrojs/mdx'; import mdx from '@astrojs/mdx';
import vue from "@astrojs/vue"; import vue from "@astrojs/vue";
import betterImageService from "astro-better-image-service"; import betterImageService from "astro-better-image-service";
import node from '@astrojs/node';
export default defineConfig({ export default defineConfig({
site: 'https://sudovanilla.org', site: 'https://sudovanilla.org',
@ -75,8 +76,10 @@ export default defineConfig({
}] }]
}), vue()], }), vue()],
output: 'server', output: 'server',
server: { adapter: node({
port: 2014, mode: 'standalone',
}), server: {
port: 5522,
host: true host: true
}, },
devToolbar: { devToolbar: {

BIN
bun.lockb

Binary file not shown.

View file

@ -14,6 +14,7 @@
"dependencies": { "dependencies": {
"@astrojs/markdoc": "^0.11.5", "@astrojs/markdoc": "^0.11.5",
"@astrojs/mdx": "^3.1.9", "@astrojs/mdx": "^3.1.9",
"@astrojs/node": "^8.3.4",
"@astrojs/partytown": "^2.1.2", "@astrojs/partytown": "^2.1.2",
"@astrojs/vue": "^4.5.2", "@astrojs/vue": "^4.5.2",
"@iconoir/vue": "^7.10.0", "@iconoir/vue": "^7.10.0",