forked from mikeage/whatsrunning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.armv6
42 lines (32 loc) · 1.01 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
# Usa una base image di Raspbian compatibile con ARMv6
FROM balenalib/rpi-raspbian:bullseye
# Imposta le variabili d'ambiente
ENV LC_ALL=C.UTF-8 \
LANG=C.UTF-8 \
PYTHONUNBUFFERED=1
# Installa le dipendenze di sistema
RUN apt-get update && \
apt-get install --no-install-recommends -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
gnupg-agent \
software-properties-common \
lsb-release \
python3-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Installa Docker CLI usando il metodo di installazione conveniente
RUN curl -fsSL https://get.docker.com | sh
# Installa le dipendenze Python
RUN pip3 install --no-cache-dir flask docker aiohttp gunicorn
# Crea la struttura della directory dell'app
WORKDIR /app
# Copia il contenuto della directory corrente nel container in /app
COPY . /app
EXPOSE 5000
ARG VERSION
ENV VERSION=${VERSION}
# Imposta l'entrypoint
CMD ["gunicorn", "main:app", "-b", "0.0.0.0:5000", "--access-logfile=-", "--error-logfile=-"]