Skip to content

Commit

Permalink
added an hls prod image
Browse files Browse the repository at this point in the history
  • Loading branch information
GokuxSS4 committed Jan 18, 2025
1 parent 98d7e5a commit 751b5e9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Build and Push hls_proxy Image
run: |
REPO_NAME_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
docker build -f Dockerfile.hls_proxy -t ghcr.io/$REPO_NAME_LOWER/hls-proxy:${{ needs.linting-and-formatting.outputs.short_commit_hash }} .
docker build -f Dockerfile.hls_proxy.prod -t ghcr.io/$REPO_NAME_LOWER/hls-proxy:${{ needs.linting-and-formatting.outputs.short_commit_hash }} .
docker push ghcr.io/$REPO_NAME_LOWER/hls-proxy:${{ needs.linting-and-formatting.outputs.short_commit_hash }}
update-infra:
Expand Down
3 changes: 0 additions & 3 deletions Dockerfile.app.prod
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@ ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
ENV REDIS_HOST=${REDIS_HOST}
ENV REDIS_PORT=${REDIS_PORT}
ENV HLS_PROXY_HOST=${HLS_PROXY_HOST}
ENV HLS_PROXY_PORT=${HLS_PROXY_PORT}
ENV NEXT_PUBLIC_HLS_PROXY_URL=${NEXT_PUBLIC_HLS_PROXY_URL}

CMD [ "node", "server.js" ]
13 changes: 13 additions & 0 deletions Dockerfile.hls_proxy.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:18-alpine

WORKDIR /usr/src/app

RUN npm install --global "@warren-bank/hls-proxy"

EXPOSE 8080

CMD ["hlsd","--port", "8080", \
"--header", "Access-Control-Allow-Origin: *", \
"--header", "Access-Control-Allow-Methods: GET, POST, OPTIONS", \
"--header", "Access-Control-Allow-Headers: Content-Type, Authorization", \
"--header", "Access-Control-Allow-Credentials: true"]
File renamed without changes.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
hls_proxy:
build:
context: .
dockerfile: Dockerfile.hls_proxy
dockerfile: Dockerfile.hls_proxy.dev
container_name: hls_proxy
ports:
- "8080:8080"
Expand Down

0 comments on commit 751b5e9

Please sign in to comment.