migration
This commit is contained in:
@@ -9,25 +9,21 @@ RUN npm run build:container
|
||||
## Build the NestJS backend
|
||||
FROM node:22-alpine AS backend-build
|
||||
WORKDIR /app
|
||||
ENV CI=true
|
||||
COPY myteamwallet_backend/package.json myteamwallet_backend/package-lock.json ./
|
||||
RUN npm ci
|
||||
RUN npm ci --ignore-scripts
|
||||
COPY myteamwallet_backend/ ./
|
||||
RUN npm run build
|
||||
|
||||
## Runtime image: backend + frontend static assets, external DB only
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
ENV CI=true
|
||||
|
||||
RUN apk add --no-cache bash
|
||||
|
||||
COPY myteamwallet_backend/package.json myteamwallet_backend/package-lock.json ./
|
||||
RUN npm ci
|
||||
RUN npm ci --omit=dev --ignore-scripts
|
||||
ENV NODE_ENV=production
|
||||
COPY --from=backend-build /app/dist ./dist
|
||||
COPY myteamwallet_backend/src ./src
|
||||
COPY myteamwallet_backend/tsconfig.json ./tsconfig.json
|
||||
COPY myteamwallet_backend/wait-for-it.sh ./wait-for-it.sh
|
||||
COPY myteamwallet_backend/docker-entrypoint.sh ./docker-entrypoint.sh
|
||||
RUN sed -i 's/\r$//' wait-for-it.sh docker-entrypoint.sh \
|
||||
|
||||
Reference in New Issue
Block a user