Skip to content

Commit

Permalink
fix(ci): adjust Dockerfiles to fix GitHub Actions build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Jun 13, 2024
1 parent 800a786 commit eda25b3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
2 changes: 2 additions & 0 deletions conversion/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ RUN go build -o voltaserve-conversion

FROM mcr.microsoft.com/playwright:jammy AS runner

RUN apt-get update
RUN apt-get install software-properties-common
RUN add-apt-repository universe
RUN apt-get update

Expand Down
6 changes: 0 additions & 6 deletions language/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ RUN pip3 install torch==2.3.1
ENV PIP_DEFAULT_TIMEOUT=900

RUN poetry run spacy download xx_ent_wiki_sm
RUN poetry run spacy download zh_core_web_trf
RUN poetry run spacy download de_core_news_lg
RUN poetry run spacy download en_core_web_trf
RUN poetry run spacy download fr_core_news_lg
RUN poetry run spacy download pt_core_news_lg
RUN poetry run spacy download es_core_news_lg

ENTRYPOINT ["poetry", "run", "flask", "run", "--host=0.0.0.0", "--port=8084"]

Expand Down
14 changes: 7 additions & 7 deletions language/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
nlp = None
iso_6393_to_model = {
"ara": "xx_ent_wiki_sm",
"chi_sim": "zh_core_web_trf",
"chi_tra": "zh_core_web_trf",
"deu": "de_core_news_lg",
"eng": "en_core_web_trf",
"fra": "fr_core_news_lg",
"chi_sim": "xx_ent_wiki_sm",
"chi_tra": "xx_ent_wiki_sm",
"deu": "xx_ent_wiki_sm",
"eng": "xx_ent_wiki_sm",
"fra": "xx_ent_wiki_sm",
"hin": "xx_ent_wiki_sm",
"ita": "xx_ent_wiki_sm",
"jpn": "xx_ent_wiki_sm",
"nld": "xx_ent_wiki_sm",
"por": "pt_core_news_lg",
"por": "xx_ent_wiki_sm",
"rus": "xx_ent_wiki_sm",
"spa": "es_core_news_lg",
"spa": "xx_ent_wiki_sm",
"swe": "xx_ent_wiki_sm",
}

Expand Down
4 changes: 2 additions & 2 deletions mosaic/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build

WORKDIR /src

Expand All @@ -9,7 +9,7 @@ COPY . .
RUN dotnet build "mosaic.csproj" -c Release -o /build
RUN dotnet publish "mosaic.csproj" -c Release -o /publish

FROM mcr.microsoft.com/dotnet/aspnet:8.0
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0

WORKDIR /app
COPY --from=build /publish .
Expand Down

0 comments on commit eda25b3

Please sign in to comment.