-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (31 loc) · 1.09 KB
/
Copy pathDockerfile
File metadata and controls
41 lines (31 loc) · 1.09 KB
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
##########################
# BASICS
#
# A Debian server with python3 installed, useful only as a cloud storage server
# Not designed for front-end interfaces
#########################
FROM python:3.8.2-buster
# Copies the necessary files
COPY certfile.crt /grey/certfile.crt
COPY keyfile.key /grey/keyfile.key
COPY setup.sh /grey/setup.sh
COPY traffic.py /grey/traffic.py
# Individual key used to attach node or to give it instructions
ENV NODE_KEY "node1"
# Similar to that of the manager node
ENV REDIS_AUTH "redis_auth"
# Similar to that of the manager node
ENV orchestra_key "karaoke"
# Similar to that of the manager node
ENV URL_BASE "example.com"
# Filesystem where all data will stored. For example: /dev/sda1
ENV FILESYSTEM "overlay"
# Maximum total storage allowed for users in KB, must be a positive integer
ENV MAX_STORAGE "1000000"
# Installs the necessary packages
# Bash for convenience
RUN mkdir -p /greyfish/sandbox &&\
pip3 install gunicorn Flask redis requests &&\
chmod +x /grey/setup.sh /grey/traffic.py
WORKDIR /greyfish
CMD /grey/setup.sh