Add build js to Dockerfile
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 37s
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 37s
This commit is contained in:
parent
02f1cbb885
commit
de7f1a306d
@ -8,6 +8,13 @@ RUN npm install --production
|
||||
|
||||
# Copie des fichiers source
|
||||
COPY src ./src
|
||||
COPY tsconfig.json ./
|
||||
|
||||
# Compilation TypeScript
|
||||
RUN npm run build
|
||||
|
||||
# Nettoyage des dépendances de développement
|
||||
RUN npm ci --only=production && npm cache clean --force
|
||||
|
||||
# Création d'un utilisateur non-root
|
||||
RUN adduser -D appuser --uid 10000 && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user