From e2492b7c1c133ea4f585b7b6ffbca282e5bbd587 Mon Sep 17 00:00:00 2001 From: Francis Rodriguez Date: Wed, 17 Jul 2024 13:15:04 -0400 Subject: [PATCH] Move .env.testnet to .env.local update task container name --- .github/workflows/testnet.deploy.yaml | 2 +- Dockerfile | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/testnet.deploy.yaml b/.github/workflows/testnet.deploy.yaml index a7c87fc9..c126f364 100644 --- a/.github/workflows/testnet.deploy.yaml +++ b/.github/workflows/testnet.deploy.yaml @@ -12,7 +12,7 @@ env: ECS_SERVICE: dao-frontend-testnet ECS_CLUSTER: dao-frontend-testnet ECS_TASK_DEFINITION: dao-frontend-testnet - CONTAINER_NAME: rif-dao-frontend + CONTAINER_NAME: dao-frontend-testnet PROFILE: testnet diff --git a/Dockerfile b/Dockerfile index f3167a36..e883d864 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,6 @@ # Use the official Node.js 18 image as a base FROM node:18-alpine AS builder -# Set the environment variable -ARG arg_env -ENV NODE_ENV="$arg_env" - # Set the working directory WORKDIR /app @@ -19,7 +15,8 @@ RUN npm install --verbose # Copy the rest of the application code COPY . . - +# Testing deployment +COPY .env.testnet .env.local # Disable telemetry ENV NEXT_TELEMETRY_DISABLED 1 # Build the Next.js application