File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ COPY package*.json ./
11
11
RUN npm install
12
12
13
13
# Copy the rest of the application code to the container
14
- COPY ../suppis-nettisivut .
14
+ COPY . .
15
15
16
16
# Build the React app
17
17
RUN npm run build
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import Main from "./pages/main";
13
13
import axios from "axios" ;
14
14
15
15
export const core = axios . create ( {
16
- baseURL : "http://localhost:3001"
16
+ baseURL : process . env . API_BASE_URL
17
17
} ) ;
18
18
19
19
core . interceptors . request . use ( async config => {
Original file line number Diff line number Diff line change 14
14
apt-get install -y google-chrome-stable && \
15
15
rm -rf /var/lib/apt/lists/*s
16
16
17
- COPY ../suppis-core ./
17
+ COPY . .
18
18
19
19
RUN npm run build
20
20
Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ services:
10
10
PORT : 3001
11
11
FIREBASE_SECRET_KEY_PATH : /app/firebase.json
12
12
WHATSAPP_SESSION_PATH : /app/whatsapp
13
+
13
14
volumes :
14
15
- ./core/whatsapp:/app/config/whatsapp
15
- - ./core/firebase.json:/app/config/ firebase-admin-secrets
16
+ - ./core/firebase.json:/app/firebase.json
16
17
dns :
17
18
- 8.8.8.8
18
19
@@ -21,7 +22,7 @@ services:
21
22
ports :
22
23
- " 3000:80"
23
24
environment :
24
- BASE_URL : http://localhost
25
+ API_BASE_URL : http://localhost
25
26
restart : always
26
27
dns :
27
28
- 8.8.8.8
@@ -33,7 +34,7 @@ services:
33
34
restart : always
34
35
depends_on :
35
36
- " core"
36
- - " frontend "
37
+ - " app "
37
38
environment :
38
39
API_URL : ' http://core:3001'
39
40
volumes :
Original file line number Diff line number Diff line change 15
15
}
16
16
17
17
location / {
18
- proxy_pass http://frontend :80;
18
+ proxy_pass http://app :80;
19
19
proxy_set_header Host $host ;
20
20
proxy_set_header X-Real-IP $remote_addr ;
21
21
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
You can’t perform that action at this time.
0 commit comments