diff --git a/Dockerfile b/Dockerfile index 069870e..30bdfb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,18 +7,18 @@ WORKDIR /app # Install dependencies COPY package*.json ./ -RUN yarn install -#RUN npm install - +# RUN yarn install +RUN npm install # Copy project files COPY . . +# RUN npm run build RUN yarn build # Expose port -EXPOSE 3000 +# EXPOSE 3000 CMD ["yarn", "start"] # Start the application in development mode -#CMD ["npm", "run", "dev"] +# CMD ["npm", "run", "dev"] diff --git a/Jenkinsfile b/Jenkinsfile index f8f7adb..72a85f0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { develop_server_name = '' production_server_ip = "88.99.212.243" production_server_name = "newhorizon_germany_001_server" - project_path = "/projects/aqila/aqila_frontend/" + project_path = "/projects/aqila/aqila_frontend" version = "main" gitBranch = "origin/main" } diff --git a/next.config.js b/next.config.js index 506c17c..03a332a 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,21 @@ /** @type {import('next').NextConfig} */ -const nextConfig = { - reactStrictMode: false, + + +module.exports = { + typescript: { + // !! WARN !! + // Dangerously allow production builds to successfully complete even if + // your project has type errors. + // !! WARN !! + ignoreBuildErrors: true, + }, + ignoreBuildErrors: true, + eslint: { + ignoreDuringBuilds: true, + }, + typescript: { + ignoreBuildErrors: true, + }, images: { remotePatterns: [ { @@ -35,15 +50,22 @@ const nextConfig = { }, ], }, - typescript: { - ignoreBuildErrors: true, - }, - eslint: { - ignoreDuringBuilds: true, - }, - trailingSlash: true, + }; -module.exports = nextConfig; + +// const nextConfig = { +// reactStrictMode: false, +// ignoreBuildErrors: true, +// typescript: { +// ignoreBuildErrors: true, +// }, +// eslint: { +// ignoreDuringBuilds: true, +// }, +// trailingSlash: true, +// }; + +// module.exports = nextConfig; diff --git a/runner.sh b/runner.sh index 51b91a0..d6b521d 100755 --- a/runner.sh +++ b/runner.sh @@ -8,5 +8,5 @@ else echo "Run Production docker" git pull origin main - DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker compose -f docker-compose.yml up -d --build + DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker compose -f docker-compose.yml up -d --build --force-recreate fi