Skip to content

Commit

Permalink
update ssl struct
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmostafa committed Nov 26, 2024
1 parent 15299dc commit d363ac6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
17 changes: 17 additions & 0 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

echo "Stopping existing container.."
dzdo docker stop resdeeds-web

echo "Pulling latest image.."
dzdo docker pull ghcr.io/idaholab/resdeeds/web:latest

echo "Launching latest container"
dzdo docker run -d --rm \
--env-file .env \
-p 80:80 -p 443:433 \
--name resdeeds-web \
-v ./etc/ssl:/etc/ssl
ghcr.io/idaholab/resdeeds/web:latest

echo "Deployed"
Empty file added deploy/main.py
Empty file.
3 changes: 0 additions & 3 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ FROM nginx:alpine

COPY etc/nginx.conf /etc/nginx/conf.d/default.conf

COPY etc/*.cer /etc/ssl/certs/
COPY etc/*.key /etc/ssl/private/

COPY --from=build /var/www/dist/resdeeds /usr/share/nginx/html

EXPOSE 80 443 4200
Expand Down

0 comments on commit d363ac6

Please sign in to comment.