Skip to content

Commit

Permalink
add k8s manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
nnqq committed Oct 25, 2021
1 parent 8208027 commit 58021d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
password: ${{ secrets.GH_CI_TOKEN }}
registry: ghcr.io
repository: ${{ github.repository }}
tag_with_ref: true
tag: ${{ github.ref }}-with-models
build_args:
- with_models=true
- with_expose=false
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ RUN if [ "$with_models" = "true" ]; then \
# Install package from source code
RUN pip install .

if [ "$with_expose" = "true" ]; then \
EXPOSE 5000
fi
RUN if [ "$with_expose" = "true" ]; then \
EXPOSE 5000
fi

if [ "$with_entrypoint" = "true" ]; then \
ENTRYPOINT [ "libretranslate", "--host", "0.0.0.0" ]
fi
RUN if [ "$with_entrypoint" = "true" ]; then \
ENTRYPOINT [ "libretranslate", "--host", "0.0.0.0" ]
fi

0 comments on commit 58021d4

Please sign in to comment.