Skip to content

Commit

Permalink
Dockerfile updates for translate
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander0042 committed Nov 25, 2024
1 parent dde4656 commit 10dc251
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Docker/package-api.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"translations": "github:Pirate-Weather/translations"
}
}
17 changes: 13 additions & 4 deletions Docker/pirate-api
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
FROM python:3.12-slim
FROM nikolaik/python-nodejs:python3.12-nodejs22-slim

RUN apt update && \
apt -y install build-essential \
libffi-dev

libffi-dev \
unzip \
rsync \
git

RUN pip install -r requirements-api.txt

run apt -y install unzip rsync
WORKDIR /app

COPY package-api.json package.json

RUN apt install -y git

RUN npm install

ENTRYPOINT ["python3"]
3 changes: 2 additions & 1 deletion Docker/requirements-api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ watchfiles==0.24.0
dask==2024.11.2
xarray==2024.10.0
pandas==2.2.3
fastparquet==2024.11.0
fastparquet==2024.11.0
javascript==1.2.1

0 comments on commit 10dc251

Please sign in to comment.