-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (23 loc) · 837 Bytes
/
Dockerfile
File metadata and controls
26 lines (23 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM alpine:3.19
MAINTAINER "Xavier Garnier <xavier.garnier@irisa.fr>"
COPY ./requirements.txt /requirements.txt
COPY ./Pipfile /Pipfile
COPY ./Pipfile.lock /Pipfile.lock
RUN apk add --no-cache --update \
gcc g++ libstdc++ make \
zlib-dev libzip-dev bzip2-dev xz-dev \
cython python3 python3-dev \
build-base openldap-dev \
py3-numpy \
nodejs-current npm \
git bash && \
mkdir /askomics && \
cd /askomics && \
python3 -m venv venv && source /askomics/venv/bin/activate && \
pip install --upgrade pip && \
mv /requirements.txt /askomics/requirements.txt && \
mv /Pipfile /askomics/Pipfile && \
mv /Pipfile.lock /askomics/Pipfile.lock && \
pip install -r requirements.txt && \
pipenv install && \
rm /askomics/requirements.txt /askomics/Pipfile /askomics/Pipfile.lock