Skip to content

Commit

Permalink
fix: Added the prod.conf file and fix docker error with copy more tha…
Browse files Browse the repository at this point in the history
…n one file.
  • Loading branch information
Mahmoud-Emad committed Jul 29, 2024
1 parent d9ac12e commit c7bb0f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/frontend.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ WORKDIR /client
ENV SERVER_DOMAIN_NAME_API=$SERVER_DOMAIN_NAME_API

# Copy package.json and package-lock.json separately to leverage Docker cache
COPY ./client/package*.json /client
COPY ./client/package.json /client
COPY ./client/package-lock.json /client
COPY ./docker/scripts/frontend/build-env.sh /client/scripts/

RUN npm i -g pnpm && pnpm install
Expand Down
10 changes: 10 additions & 0 deletions nginx/prod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server {
listen 8080;
server_name _ default_server;

root /usr/share/nginx/html;

location / {
try_files $uri $uri/ /index.html;
}
}

0 comments on commit c7bb0f9

Please sign in to comment.