dockerfile changes
This commit is contained in:
parent
6d8112c4f3
commit
94f0d38a96
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user