mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
Update start script and Dockerfile CMD to use index.mjs generated by tsup ESM build
15 lines
299 B
Docker
15 lines
299 B
Docker
FROM node:22-slim AS build
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:22-slim
|
|
WORKDIR /app
|
|
COPY --from=build /app/dist ./dist
|
|
COPY --from=build /app/node_modules ./node_modules
|
|
COPY --from=build /app/package.json .
|
|
EXPOSE 3000
|
|
CMD ["node", "dist/index.mjs"]
|