Files
mapix/Dockerfile
T
br0tkasten 7c0c50bd46
Build and Publish Docker Image / build-and-push (push) Failing after 11s
fix: update nodejs version
2026-10-23 21:52:39 +02:00

24 lines
354 B
Docker

FROM node:current-alpine AS build
WORKDIR /app
COPY package.json package-lock.json tsconfig.json ./
COPY src ./src
RUN npm ci
RUN npm run build
FROM node:current-alpine AS runtime
WORKDIR /app
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=3000
COPY package.json ./
COPY --from=build /app/dist ./dist
EXPOSE 3000
CMD ["node", "dist/index.js"]