forked from kizniche/Mycodo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (18 loc) · 1.04 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
FROM python:3.9.9-slim-bullseye
ENV DOCKER_CONTAINER TRUE
RUN useradd -ms /bin/bash pi
RUN useradd -ms /bin/bash mycodo
COPY ./mycodo/scripts/upgrade_commands.sh /home/mycodo/mycodo/scripts/upgrade_commands.sh
RUN /home/mycodo/mycodo/scripts/upgrade_commands.sh docker-create-files-directories-symlinks
RUN /home/mycodo/mycodo/scripts/upgrade_commands.sh update-apt
RUN /home/mycodo/mycodo/scripts/upgrade_commands.sh update-packages
RUN /home/mycodo/mycodo/scripts/upgrade_commands.sh ssl-certs-generate
COPY ./install/requirements.txt /home/mycodo/install
RUN /home/mycodo/mycodo/scripts/upgrade_commands.sh setup-virtualenv
RUN /home/mycodo/mycodo/scripts/upgrade_commands.sh docker-update-pip
RUN /home/mycodo/mycodo/scripts/upgrade_commands.sh docker-update-pip-packages
RUN /home/mycodo/mycodo/scripts/upgrade_commands.sh install-docker-ce-cli
COPY . /home/mycodo
WORKDIR /home/mycodo/mycodo
RUN /home/mycodo/mycodo/scripts/upgrade_commands.sh docker-compile-translations
RUN /home/mycodo/mycodo/scripts/upgrade_commands.sh compile-mycodo-wrapper