Files
mapix/Dockerfile
br0tkasten 7926de3b72
Build and Publish Docker Image / build-and-push (push) Successful in 1m5s
fix(ci): add MIT license and required Zot annotations
2026-10-25 15:39:42 +01:00

27 lines
465 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
LABEL org.opencontainers.image.vendor="br0tkasten.de" \
org.opencontainers.image.licenses="MIT"
WORKDIR /app
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=3000
COPY package.json LICENSE ./
COPY --from=build /app/dist ./dist
EXPOSE 3000
CMD ["node", "dist/index.js"]