-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdockerfile
More file actions
35 lines (23 loc) · 819 Bytes
/
dockerfile
File metadata and controls
35 lines (23 loc) · 819 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
35
FROM python:3.10-bullseye
RUN apt update
RUN apt upgrade -y
RUN apt-get install -y nano iputils-ping curl borgbackup cron git sqlite3
RUN useradd -ms /bin/bash fedow
USER fedow
ENV POETRY_NO_INTERACTION=1
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="/home/fedow/.local/bin:$PATH"
# RUN cd /home/fedow && git clone https://github.com/TiBillet/Fedow.git
COPY --chown=fedow:fedow ./ /home/fedow/Fedow
COPY --chown=fedow:fedow ./bashrc /home/fedow/.bashrc
COPY --chown=fedow:fedow ./backup /backup
WORKDIR /home/fedow/Fedow
RUN poetry install
CMD ["bash", "start.sh"]
# docker build -t fedow .
# If version or nightly
# docker tag fedow tibillet/fedow:alpha1.2
# docker push tibillet/fedow:alpha1.2
# if LTS :
# docker tag fedow tibillet/fedow:latest
# docker push tibillet/fedow:latest