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

View File

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