Scala depends on node
This commit is contained in:
@@ -7,9 +7,6 @@ RUN sbt clean assembly
|
||||
|
||||
FROM amazoncorretto:17-alpine
|
||||
|
||||
COPY --from=build /app/web/dist/ /web/dist/
|
||||
COPY --from=build /app/target/scala-2.13/app.jar /app.jar
|
||||
|
||||
VOLUME /data
|
||||
|
||||
CMD ["java", "-jar", "app.jar"]
|
||||
|
||||
@@ -7,8 +7,7 @@ Rename `.env-sample` to `.env` and fill in credentials
|
||||
|
||||
## Run
|
||||
```
|
||||
docker-compose up --build node
|
||||
docker-compose up --build scala
|
||||
docker-compose up --build
|
||||
```
|
||||
|
||||
## Web
|
||||
|
||||
+4
-2
@@ -1,9 +1,9 @@
|
||||
services:
|
||||
node:
|
||||
image: node:22.14.0
|
||||
working_dir: /app/web
|
||||
working_dir: /web
|
||||
volumes:
|
||||
- ./web:/app/web
|
||||
- ./web:/web
|
||||
command: sh -c "npm install && npm run build"
|
||||
|
||||
postgres:
|
||||
@@ -40,9 +40,11 @@ services:
|
||||
dockerfile: Dockerfile.local
|
||||
volumes:
|
||||
- scala-data:/data
|
||||
- ./web/dist:/web/dist
|
||||
ports:
|
||||
- "9090:8080"
|
||||
depends_on:
|
||||
- node
|
||||
- postgres
|
||||
|
||||
volumes:
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ import { apiHost } from './consts';
|
||||
import { WeatherIconStub } from './components/weatherIcons/WeatherIconStub';
|
||||
import { Harmonie } from './harmonie/Harmonie'
|
||||
|
||||
console.log("env:", import.meta.env.MODE);
|
||||
console.log("api host:", apiHost);
|
||||
console.log("env:", import.meta.env.MODE)
|
||||
console.log("api host:", apiHost)
|
||||
|
||||
const App: Component = () => {
|
||||
const pages = ['station', 'cities', 'latvia', 'database', 'harmonie']
|
||||
|
||||
Reference in New Issue
Block a user