coba env
This commit is contained in:
parent
641c9688ff
commit
54981bebc8
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user