-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.core
More file actions
31 lines (27 loc) · 1.19 KB
/
Dockerfile.core
File metadata and controls
31 lines (27 loc) · 1.19 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
FROM ubuntu:20.04
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
LABEL MAINTAINER="jen@simenvi.com.tw"
# COPY myapp/ /usr/src/app
WORKDIR /usr/src/main
RUN (apt update && apt upgrade -y )\
&& (apt install -y vim && apt install -y net-tools)
# && (apt install software-properties-common -y)\
# && (add-apt-repository ppa:deadsnakes/ppa)\
# && (apt install wget)
# && (wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh)\
COPY Miniconda3-latest-Linux-x86_64.sh /usr/src/main/
RUN bash Miniconda3-latest-Linux-x86_64.sh -b \
&& conda init \
&& . /root/.bashrc \
&& conda create -n py310 python=3.10 \
&& conda activate py310 \
&& pip install sqlalchemy geopandas fastapi uvicorn gunicorn ipython \
&& conda install -y pymssql pymongo \
&& echo 'conda activate py310' >> /root/.bashrc
# RUN echo "source activate env" > ~/.bashrc
# ENV PATH /opt/conda/envs/env/bin:$PATH
# RUN conda activate py310
# CMD ["bash", "test.sh"]
# CMD ["/root/miniconda3/envs/py310/bin/uvicorn", "--port", "8000", "--host", "0.0.0.0", "runApiServer:app"]
# ENTRYPOINT /root/miniconda3/envs/py310/bin/uvicorn --port 8000 --host 0.0.0.0 runApiServer:app