Skip to content
Snippets Groups Projects
Commit 8a0ded3e authored by Pierre-Gilles Levallois's avatar Pierre-Gilles Levallois
Browse files

reverting shity morning modif

parent 3c59922f
No related branches found
No related tags found
No related merge requests found
Pipeline #74646 passed
# Stage 1: Builder l'application Angular
FROM node:20 AS builder
# Proxy : uniquement pour un build sur le poste de travail.
# ENV http_proxy=http://proxyhttppronoauth.grandlyon.fr:8080
# ENV https_proxy=http://proxyhttppronoauth.grandlyon.fr:8080
WORKDIR /app
COPY . .
RUN npm install
RUN npm install -g @angular/cli && \
ng build --configuration=production --base-href=./
# Stage 2: Créer une image HTTPd minimale
FROM httpd:2.4
COPY --from=builder /app/dist/frontendapp/ /usr/local/apache2/htdocs/
COPY httpd.conf /usr/local/apache2/conf/httpd.conf
RUN chgrp -R 0 /usr/local/apache2 && \
chmod -R g+rwx /usr/local/apache2
# # Changement du port d'apache
# sed -i 's/Listen 80/Listen 8080/g' /usr/local/apache2/conf/httpd.conf
EXPOSE 8080
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment