-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
34 lines (27 loc) · 1.18 KB
/
Dockerfile
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
FROM ubuntu:latest
ENV LANG=ko_KR.UTF-8 LC_ALL=ko_KR.UTF-8
ARG PASSWORD 1234
RUN apt update
RUN apt upgrade -y
RUN apt install libfontenc1 libxfont2 xfonts-encodings xfonts-utils xfonts-base xfonts-75dpi language-pack-ko -y
RUN apt install fonts-nanum fonts-nanum-coding fonts-nanum-extra -y
RUN apt install pkg-config libxml2-dev libxmlsec1-dev libxmlsec1-openssl -y
RUN apt install curl wget net-tools build-essential zip unzip git sudo -y
RUN apt install npm -y
RUN npm i -g n
RUN n lts
RUN apt purge nodejs npm -y
RUN cd /opt && \
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /opt/Miniconda3-latest.sh && \
/bin/bash /opt/Miniconda3-latest.sh -b -p /opt/anaconda3 && \
rm /opt/Miniconda3-latest.sh && \
ln -s /opt/anaconda3/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/anaconda3/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc
ENV PATH /opt/anaconda3/bin:$PATH
RUN pip install season python3-saml gevent-websocket redis flask_session flask-socketio dizest
WORKDIR /opt
RUN dizest install app --password $PASSWORD
WORKDIR /opt/app
CMD [ "dizest", "run", "--port", "3000" ]
EXPOSE 3000/tcp