initialize node project

This commit is contained in:
2025-01-09 02:24:43 -05:00
parent 61e310a5c6
commit 44453b9f55
9 changed files with 1156 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM node:23-alpine AS build-env
WORKDIR /build
COPY ./package*json ./
RUN npm ci --only=production --omit=dev
FROM docker:clie as deploy
WORKDIR /srv/abt
RUN apk add --no-cache nodejs
COPY --from=build-env /build .
COPY . .
EXPOSE 8080
CMD [ "node", "--experimental-strip-types", "index.ts"]