From 8583bb0dcc47e0c1f20364d0f95aa97c75c94ff3 Mon Sep 17 00:00:00 2001 From: Viacheslav Turovskyi Date: Fri, 21 Jun 2024 13:08:22 +0000 Subject: [PATCH] remove Docker-related code --- .dockerignore | 2 -- StudioNextDockerfile | 23 ----------------------- apps/studio-next/package.json | 2 -- turbo.json | 5 +---- 4 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 .dockerignore delete mode 100644 StudioNextDockerfile diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 4a246ec6c..000000000 --- a/.dockerignore +++ /dev/null @@ -1,2 +0,0 @@ -Dockerfile -.dockerignore diff --git a/StudioNextDockerfile b/StudioNextDockerfile deleted file mode 100644 index 669d45a51..000000000 --- a/StudioNextDockerfile +++ /dev/null @@ -1,23 +0,0 @@ -FROM node:18-alpine AS base - -# Install dependencies only when needed -# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. -RUN apk add --no-cache libc6-compat -WORKDIR /app - -COPY . . - -ENV NODE_ENV production - -# Next.js collects completely anonymous telemetry data about general usage. -# Learn more here: https://nextjs.org/telemetry -# Uncomment the following line in case you want to disable telemetry during runtime. -ENV NEXT_TELEMETRY_DISABLED 1 - -EXPOSE 3001 - -ENV PORT 3001 - -# server.js is created by next build from the standalone output -# https://nextjs.org/docs/pages/api-reference/next-config-js/output -CMD HOSTNAME="0.0.0.0" node apps/studio-next/server.js diff --git a/apps/studio-next/package.json b/apps/studio-next/package.json index 8065d831e..a2bd906dc 100644 --- a/apps/studio-next/package.json +++ b/apps/studio-next/package.json @@ -7,8 +7,6 @@ "build": "next build", "start": "next start", "lint": "next lint", - "build:studio-next:docker": "next build && cp -r public .next/standalone/apps/studio-next/public && cp -r .next/static .next/standalone/apps/studio-next/.next && cp ../../StudioNextDockerfile .next/standalone/Dockerfile && cp ../../.dockerignore .next/standalone/.dockerignore && cd .next/standalone && docker build -t asyncapi/studio:latest .", - "docker:build": "docker build -t asyncapi/studio:latest .", "cy:e2e:chrome": "cypress run --e2e --browser chrome", "cy:e2e:chromium": "cypress run --e2e --browser chromium", "cy:e2e:edge": "cypress run --e2e --browser edge", diff --git a/turbo.json b/turbo.json index 927e6676c..6fbcdb1aa 100644 --- a/turbo.json +++ b/turbo.json @@ -19,9 +19,6 @@ }, "clean": {}, "lint": {}, - "generate:assets":{}, - "build:studio-next:docker": { - "dependsOn": ["^build:studio-next:docker"] - } + "generate:assets": {} } }