build(app): limit Next.js standalone output mode only for docker image
This commit is contained in:
parent
838b779f3d
commit
33fa8a1f65
2 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,9 @@ WORKDIR /home/perplexica
|
|||
|
||||
COPY ui /home/perplexica/
|
||||
|
||||
# Specific Next.js output for standalone
|
||||
RUN echo "const nextConfig={output: 'standalone',images:{remotePatterns:[{hostname:'s2.googleusercontent.com'}]}};export default nextConfig;" > ./next.config.mjs
|
||||
|
||||
RUN yarn install
|
||||
RUN yarn build
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: 'standalone',
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue