forked from noderod/greyfish
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (24 loc) · 983 Bytes
/
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
28
29
30
31
##########################
# BASICS
#
# An alpine server with python3 installed, useful only as a cloud storage server
# Not designed for front-end interfaces
#########################
FROM python:3.6-alpine
# Copies the necessary files
COPY base_functions.py /grey/base_functions.py
COPY remove_files.py /grey/remove_files.py
COPY new_user.py /grey/new_user.py
COPY gget_all.py /grey/gget_all.py
COPY push_all.py /grey/push_all.py
COPY grey_regular.py /grey/grey_regular.py
COPY admin.py /grey/admin.py
COPY API_Daemon.sh /grey/API_Daemon.sh
COPY setup.sh /grey/setup.sh
# Installs the necessary packages
# Bash for convenience
RUN apk update && apk add bash curl && mkdir -p /greyfish/sandbox &&\
pip3 install gunicorn Flask influxdb redis requests &&\
chmod +x /grey/new_user.py /grey/grey_regular.py /grey/gget_all.py /grey/push_all.py /grey/API_Daemon.sh /grey/admin.py \
/grey/setup.sh
WORKDIR /greyfish