Skip to content

Commit

Permalink
Fix release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
acrrd committed Jan 17, 2024
1 parent f0ba55a commit 1555768
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/release_artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ runs:
BIN_PATH="${GITHUB_WORKSPACE}/target/${{ env.build_target }}/release/${{ inputs.bin_name }}"
MODEL_PATH="${GITHUB_WORKSPACE}/assets/${{ inputs.model_full_name }}"
RUNTIME_PATH="${GITHUB_WORKSPACE}/assets/${{ inputs.runtime_full_name }}/${{ env.runtime_target }}"
DOCKERFILE_PATH="${GITHUB_WORKSPACE}/web-api/Dockerfile"
DOCKERFILE_PATH="${GITHUB_WORKSPACE}/web-api/Dockerfile.release"
ARCHIVE_NAME="${{ inputs.archive_name }}"
PYTHON_WORKSPACE="${GITHUB_WORKSPACE}/snippet-extractor/"
Expand Down
16 changes: 16 additions & 0 deletions web-api/Dockerfile.release
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM debian:12.4

RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
ca-certificates python3.11 pipenv \
; \
# rustls in aws
update-ca-certificates

WORKDIR /app
COPY ./ ./

RUN pipenv install --deploy && pipenv run python -c 'import nltk; nltk.download("punkt")'

ENTRYPOINT ["/app/server.bin"]

0 comments on commit 1555768

Please sign in to comment.