Skip to content

Commit

Permalink
Reshape some files and folders (#1018)
Browse files Browse the repository at this point in the history
* move nginx conf and reshape Dockerfile

* set documentation under npm and delete yarn

* reshape sonar file

* delete unused file
  • Loading branch information
PierreVasseur authored Oct 10, 2024
1 parent cc2b694 commit 66ecf8b
Show file tree
Hide file tree
Showing 5 changed files with 565 additions and 4,776 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Étape de construction
### BUILD STEP ###

FROM node:latest as builder

WORKDIR /bauhaus
Expand All @@ -9,7 +10,8 @@ RUN npm install --force

RUN npm run build

# Étape d'exécution
### EXECUTION STEP ###

FROM nginxinc/nginx-unprivileged:mainline-alpine

# Non root user
Expand All @@ -20,12 +22,12 @@ ENV NGINX_GROUP=nginx

USER $NGINX_USER_ID

# Ajout du build au dossier root de nginx
# Add build to nginx root file
COPY --from=builder --chown=$NGINX_USER:$NGINX_GROUP /bauhaus/build /usr/share/nginx/html

# Copie de la configuration nginx
# Copy nginx configuration
RUN rm /etc/nginx/conf.d/default.conf
COPY --from=builder --chown=$NGINX_USER:$NGINX_GROUP /bauhaus/config/nginx.conf /etc/nginx/conf.d/nginx.conf
COPY --from=builder --chown=$NGINX_USER:$NGINX_GROUP /bauhaus/nginx.conf /etc/nginx/conf.d/nginx.conf

# Add entrypoint
RUN chmod 755 /usr/share/nginx/html/vite-envs.sh
Expand Down
Loading

0 comments on commit 66ecf8b

Please sign in to comment.