diff --git a/docker-compose.yml b/docker-compose.yml index 66f178d..5d7a349 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,10 @@ services: web: - build: web + build: + context: web + args: + - PB_EMAIL=${PB_EMAIL} + - PB_PW=${PB_PW} env_file: .env ports: - "4321:4321" diff --git a/web/Dockerfile b/web/Dockerfile index fa77efe..b64afb5 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -6,6 +6,11 @@ COPY . . ENV PUBLIC_PB_URL="http://pb:8090" ENV PUBLIC_URL=http://localhost:4321 +ARG PB_EMAIL +ARG PB_PW +ENV PB_EMAIL=$PB_EMAIL +ENV PB_PW=$PB_PW + RUN npm run build EXPOSE 4321