53f4df6e3c
- scripts/deploy.sh: Full deploy flow with fresh builds (--no-cache) - scripts/build-check.sh: Pre-flight staleness check - Docker labels for build tracking (git commit + timestamp) - Prevents stale container bug from recurring
18 lines
289 B
Docker
18 lines
289 B
Docker
FROM node:20-alpine
|
|
|
|
ARG GIT_COMMIT=unknown
|
|
ARG BUILD_DATE=unknown
|
|
LABEL org.opencontainers.image.revision=$GIT_COMMIT \
|
|
org.opencontainers.image.created=$BUILD_DATE
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
RUN npm install --production
|
|
|
|
COPY src ./src
|
|
|
|
EXPOSE 3001
|
|
|
|
CMD ["npm", "start"]
|