website refactoring #7
@@ -22,8 +22,8 @@ services:
|
||||
container_name: frontend
|
||||
volumes:
|
||||
- ./frontend.env:/app/.env # Mount it as .env at runtime
|
||||
env_file:
|
||||
- ./frontend.env
|
||||
# env_file:
|
||||
# - ./frontend.env
|
||||
ports:
|
||||
- "5100:3000"
|
||||
restart: on-failure
|
||||
|
||||
@@ -13,9 +13,6 @@ RUN npm ci
|
||||
# Copy entire project
|
||||
COPY . .
|
||||
|
||||
# Create a .env file before build
|
||||
RUN echo "NEXT_PUBLIC_HCAPTCHA_SITE_KEY=$HCAPTCHA_SITE_KEY" > .env
|
||||
|
||||
# Build the Next.js app
|
||||
RUN npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user