Update deployment configuration files for optimized CI/CD pipeline

- Simplified `fly.toml` by removing inline comments.
- Refactored `.woodpecker.yml` pipeline syntax for better clarity and flexibility.
- Adjusted `Dockerfile` to fix `dist` directory path and streamline `CMD` execution.
This commit is contained in:
2025-07-23 21:32:24 +02:00
committed by k
parent c498b19afb
commit 01edb8d575
3 changed files with 32 additions and 27 deletions

View File

@ -1,25 +1,20 @@
FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:20-alpine AS production
WORKDIR /app
RUN npm install -g serve
COPY --from=build /app/dist /app
COPY --from=build /app/dist ./dist
EXPOSE 3000
CMD ["serve", "-s", ".", "-l", "3000"]
CMD ["serve", "-s", "dist", "-l", "3000"]
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO- http://localhost:3000/ || exit 1
CMD wget -qO- http://localhost:3000/ || exit 1
calhost:3000/ || exit 1