Clean up type errors and get docker build into better state

This commit is contained in:
Mike Conrad
2025-05-19 13:48:47 -04:00
parent 7fa503897c
commit 7ffe4d2825
6 changed files with 14 additions and 9 deletions

View File

@ -1,10 +1,10 @@
FROM node:20.12.2-alpine3.18 AS base
# All deps stage
FROM base AS deps
WORKDIR /app
ADD package.json package-lock.json ./
RUN npm ci
FROM node:22 AS dev-deps
WORKDIR /app
@ -24,7 +24,7 @@ FROM base AS build
WORKDIR /app
COPY --from=deps /app/node_modules /app/node_modules
ADD . .
RUN node ace build --ignore-ts-errors
RUN node ace build
# Production stage
FROM base
@ -33,4 +33,4 @@ WORKDIR /app
COPY --from=production-deps /app/node_modules /app/node_modules
COPY --from=build /app/build /app
EXPOSE 8080
CMD ["node", "./bin/server.js"]
CMD ["node", "./bin/server.js"]