-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathDockerfile.run-papi
More file actions
executable file
·37 lines (29 loc) · 1.05 KB
/
Dockerfile.run-papi
File metadata and controls
executable file
·37 lines (29 loc) · 1.05 KB
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
27
28
29
30
31
32
33
34
35
36
37
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
RUN deps=''\
&& apt-get update\
# for route and sudo
&& apt-get install --no-install-recommends -y make gcc libc6-dev\
&& pip3 install cffi
ADD third-party/pypapi /pypapi
RUN cd /pypapi && python setup.py build && python pypapi/papi_build.py
FROM ${BASE_IMAGE}
COPY --from=0 /pypapi/ /pypapi/
RUN deps=''\
&& apt-get update\
# for route and sudo
&& apt-get install --no-install-recommends -y curl gosu net-tools sudo ${deps}\
&& apt-get purge -y --auto-remove ${deps}\
&& pip3 install cffi minio bottle
RUN mkdir -p /sebs
COPY dockerfiles/local/run.sh /sebs/
COPY dockerfiles/local/*.py /sebs/
COPY dockerfiles/local/python/*.py /sebs/
COPY dockerfiles/local/python/run_server.sh /sebs/
COPY dockerfiles/local/python/timeit.sh /sebs/
COPY dockerfiles/local/python/runners.json /sebs/
ENV PYTHONPATH=/pypapi:/sebs/.python_packages/lib/site-packages:$PYTHONPATH
COPY dockerfiles/local/entrypoint.sh /sebs/entrypoint.sh
RUN chmod +x /sebs/entrypoint.sh
RUN chmod +x /sebs/run.sh
ENTRYPOINT ["/sebs/entrypoint.sh"]