-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (25 loc) · 921 Bytes
/
Dockerfile
File metadata and controls
34 lines (25 loc) · 921 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
27
28
29
30
31
32
33
34
ARG PYTHON_VERSION=3.9
FROM python:${PYTHON_VERSION}
RUN apt-get update && apt-get install -y \
python3-pip \
python3-venv \
python3-dev \
python3-setuptools \
python3-wheel \
libxcb-composite0-dev
RUN pip install gunicorn==20.1.0
RUN wget https://github.com/Aloxaf/silicon/releases/download/v0.4.3/silicon-v0.4.3-x86_64-unknown-linux-gnu.tar.gz && \
tar xzvf silicon-v0.4.3-x86_64-unknown-linux-gnu.tar.gz && \
mv silicon /usr/local/bin/
RUN mkdir -p /app
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY app.py .
COPY templates templates
COPY static/images/githu.png /app/static/images/
COPY static/images/github.png /app/static/images/
EXPOSE 8080
# replace APP_NAME with module name
# CMD ["gunicorn", "--bind", ":8080", "--workers", "2", "--log-level", "debug", "app:app"]
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port=8080" ]