Skip to content

Commit

Permalink
chore(build, api, web-scraper): bump base Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Dec 14, 2024
1 parent 3caab80 commit a656894
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
FROM rust:1.82-slim-bookworm AS builder
FROM rust:1.83-slim-bookworm AS builder
WORKDIR /app

# Install dependencies.
RUN set -x && apt-get update && apt-get install -y protobuf-compiler

# Copy manifest and fetch dependencies.
COPY ["./Cargo.lock", "./Cargo.toml", "./"]
RUN set -x && cargo fetch
RUN set -x && apt-get update && apt-get install -y protobuf-compiler curl

# Copy source code and build.
COPY [".", "./"]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ retrack.toml
rustfmt.toml

# Path that should be ignored by api Docker image
/components
/components/retrack-web-scraper
*.json
4 changes: 2 additions & 2 deletions Dockerfile.web-scraper
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM node:22-alpine3.20 AS builder
FROM --platform=$BUILDPLATFORM node:22-alpine3.21 AS builder
WORKDIR /app

# Copy workspace root `package.json` and `package-lock.json` files,
Expand All @@ -12,7 +12,7 @@ COPY ["./components/retrack-web-scraper", "./components/retrack-web-scraper"]
RUN set -x && npm test --ws
RUN set -x && npm run build --ws

FROM node:22-alpine3.20
FROM node:22-alpine3.21
ENV NODE_ENV=production \
RETRACK_WEB_SCRAPER_BROWSER_EXECUTABLE_PATH="/usr/bin/chromium-browser" \
DISPLAY=:99
Expand Down

0 comments on commit a656894

Please sign in to comment.