-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
21 lines (16 loc) · 872 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:latest
ENV TZ=Asia/Kolkata DEBIAN_FRONTEND=noninteractive PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev curl python3 python3-distutils python3-pip python3-venv libsm6 libxext6 libgl1 libxrender1 libfontconfig1 libice6 python3-opencv
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash
RUN apt-get install -y nodejs gcc g++ make
RUN echo "Node.js version is:" && node -v && echo "NPM version is:" && npm -v && echo "Python version is:" && python3 --version && echo "Python pip version is:" && pip --version
WORKDIR /akashic
COPY . /akashic
WORKDIR /akashic/client
RUN export NODE_ENV=production
RUN npm install -g npm@latest && npm install
RUN npm run build
WORKDIR /akashic
RUN pip install -r requirements.txt
# Gunicorn + Eventlet doesn't works properly
CMD ["python3", "main.py"]