Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ commitlint.config.json
dist
build
reports
local.json
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:24.0.0 AS build
FROM node:24-slim AS build

WORKDIR /tmp/buildApp

Expand All @@ -9,9 +9,12 @@ RUN npm install
COPY . .
RUN npm run build

FROM node:24.0.0-alpine3.21 AS production

RUN apk add --no-cache dumb-init python3 make g++
# Production stage with GDAL setup
FROM node:24-slim AS production
RUN apt-get update && apt-get install -y --no-install-recommends \
dumb-init \
gdal-bin \
&& rm -rf /var/lib/apt/lists/*

ENV NODE_ENV=production
ENV SERVER_PORT=8080
Expand Down
Loading