Move website root to website/

This commit is contained in:
2025-12-18 16:29:06 +00:00
parent b0be9fae2f
commit 9c50e74904
5 changed files with 21 additions and 22 deletions

View File

@@ -1,8 +0,0 @@
!package-*.json
node_modules/
dist/
.helix/
.vscode/
.zed/
.env
*.sqlite

7
website/.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
.astro/
dist/
node_modules/
.dockerignore
.env
*.sqlite
Dockerfile

View File

@@ -14,26 +14,26 @@ WORKDIR /app
# from your very own no-reply email address?
############################################
COPY package.json .
COPY website/db website/astro.config.mjs website/
COPY package.json package-lock.json ./
RUN npm install
COPY astro.config.mjs ./
COPY db ./db/
ARG DB_URL=file:/app/db.sqlite
ENV ASTRO_DB_REMOTE_URL=$DB_URL
RUN mkdir -p "$(dirname "$(echo "$ASTRO_DB_REMOTE_URL" | cut -d':' -f 2)")"
RUN npm run astro db push
COPY ./website ./website
RUN npm install
COPY . .
RUN npm run build
ARG MAX_DAILY_EMAILS="100"
ENV MAX_DAILY_EMAILS=$MAX_DAILY_EMAILS
ARG SENDMAIL_BIN="/usr/sbin/sendmail"
ENV SENDMAIL_BIN=$SENDMAIL_BIN
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
CMD [ \
"MAX_DAILY_EMAILS=$MAX_DAILY_EMAILS", \
"SENDMAIL_BIN=$SENDMAIL_BIN", \
"node", \
"./website/dist/server/entry.mjs"]
CMD ["node", "./dist/server/entry.mjs"]

View File

@@ -1,11 +1,11 @@
{
"private": "true",
"scripts": {
"dev": "cd website && astro dev",
"start": "cd website && astro build --remote && node ./dist/server/entry.mjs",
"build": "cd website && astro build --remote",
"preview": "cd website && astro preview",
"astro": "cd website && astro"
"dev": "astro dev",
"start": "astro build --remote && node ./dist/server/entry.mjs",
"build": "astro build --remote",
"preview": "astro preview",
"astro": "astro"
},
"engines": {
"node": "^22.14.0"