This commit is contained in:
Irwan Cahyono 2025-08-08 14:37:17 +07:00
parent 641c9688ff
commit 54981bebc8
2 changed files with 16 additions and 3 deletions

View File

@ -7,7 +7,13 @@ COPY package*.json ./
RUN npm install --legacy-peer-deps RUN npm install --legacy-peer-deps
COPY . . COPY . .
COPY .env ./
ARG API_BASE_URL
ARG CLIENT_ID
ARG CLIENT_SECRET
ENV API_BASE_URL=$API_BASE_URL
ENV CLIENT_ID=$CLIENT_ID
ENV CLIENT_SECRET=$CLIENT_SECRET
RUN npm run generate RUN npm run generate

View File

@ -1,13 +1,20 @@
services: services:
nuxt-app: nuxt-app:
build: . build:
context: .
args:
- API_BASE_URL=${API_BASE_URL}
- CLIENT_ID=${CLIENT_ID}
- CLIENT_SECRET=${CLIENT_SECRET}
container_name: freekake-nuxt-container container_name: freekake-nuxt-container
ports: ports:
- "3000:80" - "3000:80"
env_file: env_file:
- .env - .env
environment: environment:
- NODE_ENV=production - API_BASE_URL=${API_BASE_URL}
- CLIENT_ID=${CLIENT_ID}
- CLIENT_SECRET=${CLIENT_SECRET}
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf:ro - ./nginx.conf:/etc/nginx/conf.d/nginx.conf:ro