dockerfile changes

This commit is contained in:
Evan Feenstra 2025-01-16 11:04:56 -08:00
parent 6d8112c4f3
commit 94f0d38a96
3 changed files with 16 additions and 6 deletions

View File

@ -24,6 +24,9 @@ COPY --from=deps /app/node_modules ./node_modules
COPY . .
# This will do the trick, use the corresponding env file for each environment.
COPY .env.local .env.production
# Add assetlinks.json to the .well-known directory in the public folder
RUN mkdir -p public/.well-known
COPY assetlinks.json public/.well-known/assetlinks.json
RUN npm run build
# 3. Production image, copy all the files and run next
@ -49,4 +52,4 @@ EXPOSE 3000
ENV PORT=3000
CMD HOSTNAME=0.0.0.0 node server.js
CMD HOSTNAME=0.0.0.0 node server.js

View File

@ -88,6 +88,7 @@ async function post_runner(url: string, token: string, filepath: string) {
month: 'long',
day: 'numeric',
});
console.log('post to runner:', filepath);
try {
await fetch(url, {
method: 'POST',
@ -102,3 +103,9 @@ async function post_runner(url: string, token: string, filepath: string) {
console.error(e);
}
}
/*
02d4b00864dad8e3343909d092a97d33c87989fbe4591758ca5f6b648f018876b0:02736e7dad83d7205826649fc17db672ce08f8e87a2b47c7785ccbf79f24e91db0:1099586076673
*/

View File

@ -14,17 +14,17 @@ services:
- livekit
livekit:
image: sphinx-livekit:latest
build:
context: .
restart: on-failure
command: ["node", "server.js"]
container_name: livekit.sphinx
environment:
- HOSTNAME=0.0.0.0
ports:
- 3000:3000
volumes:
caddy: