-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.armv6
42 lines (34 loc) · 1 KB
/
Dockerfile.armv6
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
38
39
40
41
42
FROM arm32v6/alpine:3.14
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
RUN apk add --no-cache alsa-utils \
alsa-utils-doc \
alsa-lib \
alsaconf \
alsa-utils \
ffmpeg \
nginx \
python3 \
python3-dev \
py3-pip \
curl
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install pip requirements
WORKDIR /opt/ebilal
RUN python3 -m venv venv
RUN source venv/bin/activate
RUN pip3 install --upgrade pip
RUN pip3 install --upgrade setuptools
COPY requirements.txt .
RUN pip3 install -r requirements.txt
# Setup main app
COPY . /opt/ebilal
COPY settings_example.toml /opt/ebilal/settings.toml
EXPOSE 8000
# Setup nginx
RUN ln -s /opt/ebilal/ebilal_web /var/www/html
COPY ./other/ebilal_site_nginx /etc/nginx/sites-available/
EXPOSE 80
CMD ["venv/bin/python3","/opt/ebilal/ebilal.py"]&&["nginx", "-g", "daemon off;"]