mirror of
https://github.com/KeaBase/kea-research.git
synced 2026-04-28 11:30:35 +00:00
21 lines
468 B
Docker
21 lines
468 B
Docker
FROM node:24-alpine AS build
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
# Convert .po files to JSON before build
|
|
RUN node scripts/po2json.mjs
|
|
RUN npm run build
|
|
|
|
FROM node:24-alpine AS runtime
|
|
WORKDIR /app
|
|
COPY --from=build /app/dist ./dist
|
|
COPY --from=build /app/node_modules ./node_modules
|
|
COPY --from=build /app/public/locales ./public/locales
|
|
COPY package.json .
|
|
|
|
ENV HOST=0.0.0.0
|
|
ENV PORT=4321
|
|
EXPOSE 4321
|
|
|
|
CMD ["node", "./dist/server/entry.mjs"]
|