Add the sdk-signer-client in the final image
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 29s
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 29s
This commit is contained in:
parent
6c6f49417e
commit
221ac17831
@ -20,7 +20,7 @@ RUN npm ci && npm run build
|
|||||||
# Installation des dépendances de l'app
|
# Installation des dépendances de l'app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm ci
|
||||||
|
|
||||||
# Copie et build des sources de l'app
|
# Copie et build des sources de l'app
|
||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
@ -31,7 +31,6 @@ RUN npm run build
|
|||||||
RUN npm prune --omit=dev && npm cache clean --force
|
RUN npm prune --omit=dev && npm cache clean --force
|
||||||
|
|
||||||
FROM node:19-alpine
|
FROM node:19-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Création d'un utilisateur non-root
|
# Création d'un utilisateur non-root
|
||||||
@ -43,7 +42,7 @@ USER appuser
|
|||||||
COPY --from=builder --chown=appuser:appuser /app/package*.json ./
|
COPY --from=builder --chown=appuser:appuser /app/package*.json ./
|
||||||
COPY --from=builder --chown=appuser:appuser /app/node_modules ./node_modules
|
COPY --from=builder --chown=appuser:appuser /app/node_modules ./node_modules
|
||||||
COPY --from=builder --chown=appuser:appuser /app/dist ./dist
|
COPY --from=builder --chown=appuser:appuser /app/dist ./dist
|
||||||
|
COPY --from=builder /sdk-signer-client /sdk-signer-client
|
||||||
|
|
||||||
# Configuration du port et démarrage
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
Loading…
x
Reference in New Issue
Block a user