Skip to content

Commit 79cc3e7

Browse files
committed
ci: add arm64 Dockerfiles (sudachipy)
1 parent 57153ec commit 79cc3e7

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

Dockerfile.arm64

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM kernai/refinery-parent-images:v1.17.2-common
2+
3+
WORKDIR /program
4+
5+
RUN apt update \
6+
&& apt install curl build-essential -y \
7+
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
8+
9+
ENV PATH="/root/.cargo/bin:${PATH}"
10+
11+
COPY requirements.txt .
12+
13+
RUN pip3 install --no-cache-dir -r requirements.txt
14+
RUN python -m spacy download en_core_web_sm
15+
RUN python -m spacy download de_core_news_sm
16+
17+
COPY / .
18+
19+
CMD [ "/usr/local/bin/uvicorn", "--host", "0.0.0.0", "--port", "80", "app:app" ]

dev.Dockerfile.arm64

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM kernai/refinery-parent-images:v1.17.2-common
2+
3+
WORKDIR /app
4+
5+
VOLUME ["/app"]
6+
7+
RUN apt update \
8+
&& apt install curl build-essential -y \
9+
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
10+
11+
ENV PATH="/root/.cargo/bin:${PATH}"
12+
13+
COPY requirements*.txt .
14+
15+
RUN pip3 install --no-cache-dir -r requirements-dev.txt
16+
RUN python -m spacy download en_core_web_sm
17+
RUN python -m spacy download de_core_news_sm
18+
19+
COPY / .
20+
21+
CMD [ "/usr/local/bin/uvicorn", "--host", "0.0.0.0", "--port", "80", "app:app", "--reload" ]

0 commit comments

Comments
 (0)