Move website root to website/
This commit is contained in:
7
website/.dockerignore
Normal file
7
website/.dockerignore
Normal file
@@ -0,0 +1,7 @@
|
||||
.astro/
|
||||
dist/
|
||||
node_modules/
|
||||
.dockerignore
|
||||
.env
|
||||
*.sqlite
|
||||
Dockerfile
|
||||
39
website/Dockerfile
Normal file
39
website/Dockerfile
Normal file
@@ -0,0 +1,39 @@
|
||||
FROM node:lts AS runtime
|
||||
WORKDIR /app
|
||||
|
||||
################### TODO ###################
|
||||
# - Refactor this Dockerfile into a compose.yml
|
||||
# - Add another service on the same network running an SMTP server such
|
||||
# as msmtpd or Postfix
|
||||
# - Configure the SMTP server to send emails from me@joeac.net via Zoho
|
||||
# - Configure the website to use the SMTP server to send emails
|
||||
# - Test
|
||||
# - Push
|
||||
# - Test on RPi
|
||||
# - Consider: now you're running an SMTP server anyway, can you send it
|
||||
# from your very own no-reply email address?
|
||||
############################################
|
||||
|
||||
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 . .
|
||||
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 ["node", "./dist/server/entry.mjs"]
|
||||
9190
website/package-lock.json
generated
Normal file
9190
website/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
29
website/package.json
Normal file
29
website/package.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"private": "true",
|
||||
"scripts": {
|
||||
"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"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/db": "^0.18.3",
|
||||
"@astrojs/mdx": "^4.3.0",
|
||||
"@astrojs/node": "^9.5.1",
|
||||
"@astrojs/rss": "^4.0.10",
|
||||
"@astrojs/sitemap": "^3.2.1",
|
||||
"@types/nodemailer": "^7.0.4",
|
||||
"astro": "^5.1.1",
|
||||
"markdown-it": "^14.1.0",
|
||||
"nodemailer": "^7.0.11",
|
||||
"typescript": "^5.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.9.4",
|
||||
"@types/markdown-it": "^14.1.1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user