Skip to content

Commit

Permalink
fixup! docker build
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Jan 13, 2025
1 parent 3715cf7 commit fef06dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# syntax = docker/dockerfile:1

# Adjust NODE_VERSION as desired
ARG NODE_VERSION=20.8.1
FROM node:${NODE_VERSION}-slim AS base
FROM node:22.13.0-slim AS base

LABEL fly_launch_runtime="nodejs"

Expand Down Expand Up @@ -31,7 +29,7 @@ COPY --link package-lock.json package.json ./
# See https://docs.docker.com/reference/dockerfile/#copy---parents
COPY --link api/package.json ./api/
COPY --link db/package.json ./db/
COPY --link observer/package.json ./observer/
COPY --link backend/package.json ./backend/

RUN npm ci --workspaces

Expand Down
6 changes: 2 additions & 4 deletions api/fly.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# fly.toml file generated for spark on 2023-05-16T19:09:01+02:00

app = "deal-observer-api"
primary_region = "cdg"
kill_signal = "SIGINT"
Expand All @@ -11,7 +9,7 @@ PORT = "8080"
HOST = "0.0.0.0"
SENTRY_ENVIRONMENT = "production"
REQUEST_LOGGING = "false"
NPM_CONFIG_WORKSPACE = "stats"
NPM_CONFIG_WORKSPACE = "api"

[experimental]
auto_rollback = true
Expand All @@ -23,7 +21,7 @@ processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
# Remember to update PG Pool config option `max` in bin/spark-stats.js when changing `hard_limit`.
# Remember to update PG Pool config option `max` in bin/deal-observer-api.js changing `hard_limit`.
hard_limit = 800
soft_limit = 600
type = "connections"
Expand Down
14 changes: 7 additions & 7 deletions backend/fly.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
app = "spark-observer"
app = "spark-observer-backend"
primary_region = "cdg"

[env]
SENTRY_ENVIRONMENT = "production"
NPM_CONFIG_WORKSPACE = "observer"
SENTRY_ENVIRONMENT = "production"
NPM_CONFIG_WORKSPACE = "backend"

[deploy]
strategy = "rolling"
release_command = "npm run migrate --workspace db"
strategy = "rolling"
release_command = "npm run migrate --workspace db"

[[restart]]
policy = "always"
retries = 10
policy = "always"
retries = 10

0 comments on commit fef06dd

Please sign in to comment.