Skip to content

Commit 3408419

Browse files
attempt to install ocr library
1 parent 4ef9446 commit 3408419

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
with:
3636
context: .
3737
push: true
38-
tags: hal9ai/hal9-docker:latest,hal9ai/hal9-docker:0.2.28
38+
tags: hal9ai/hal9-docker:latest,hal9ai/hal9-docker:0.2.29

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11.5-slim
1+
FROM python:3.11-slim
22

33
RUN apt-get update
44
RUN apt-get install -y ca-certificates curl gnupg
@@ -47,17 +47,15 @@ RUN apt-get install -y libcurl4-openssl-dev libfontconfig1-dev libxml2-dev libso
4747
RUN Rscript -e 'install.packages(c("tidyverse", "torch", "torchvision", "filelock", "pins", "plumber", "shiny", "renv"))'
4848
RUN Rscript -e 'torch::install_torch()'
4949

50-
RUN apt-get update && \
51-
apt-get install -y tesseract-ocr tesseract-ocr-eng && \
52-
apt-get clean && \
53-
rm -rf /var/lib/apt/lists/*
50+
RUN apt-get install -y tesseract-ocr tesseract-ocr-eng
5451

5552
RUN mkdir /hal9
5653
COPY requirements.txt /hal9
5754

5855
RUN pip install --upgrade pip
5956
RUN pip install -r /hal9/requirements.txt
6057

58+
RUN apt remove yarn
6159
RUN npm install -g yarn
6260

6361
COPY package.json /hal9

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hal9sky",
3-
"version": "0.5.2",
3+
"version": "0.5.1",
44
"scripts": {
55
"build": "rm -rf dist && webpack --mode development",
66
"start": "node ./dist/server.js",

0 commit comments

Comments
 (0)